Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jbis9051 committed Sep 25, 2022
1 parent b19c070 commit 9bbc3d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tss/rsa/keyshare.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ func (kshare *KeyShare) get2DeltaSi(players int64) *big.Int {
// parallel indicates whether the blinding operations should use go routines to operate in parallel.
// If parallel is false, blinding will take about 2x longer than nonbinding, otherwise it will take about the same time
// (see benchmarks). If randSource is nil, parallel has no effect. parallel should almost always be set to true.
func (kshare *KeyShare) Sign(randSource io.Reader, pub *rsa.PublicKey, msg []byte, parallel bool) (SignShare, error) {
func (kshare *KeyShare) Sign(randSource io.Reader, pub *rsa.PublicKey, digest []byte, parallel bool) (SignShare, error) {
x := &big.Int{}
x.SetBytes(msg)
x.SetBytes(digest)

exp := kshare.get2DeltaSi(int64(kshare.Players))

Expand Down

0 comments on commit 9bbc3d7

Please sign in to comment.