Skip to content

Commit 171c418

Browse files
jsorefarmfazh
authored andcommitted
spelling: threshold
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
1 parent 82b7495 commit 171c418

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tss/rsa/keyshare.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (kshare *KeyShare) MarshalBinary() ([]byte, error) {
4040
}
4141

4242
if kshare.Threshold > math.MaxUint16 {
43-
return nil, fmt.Errorf("rsa_threshold: keyshare marshall: Threhsold is too big to fit in a uint16")
43+
return nil, fmt.Errorf("rsa_threshold: keyshare marshall: Threshold is too big to fit in a uint16")
4444
}
4545

4646
if kshare.Index > math.MaxUint16 {
@@ -105,7 +105,7 @@ func (kshare *KeyShare) UnmarshalBinary(data []byte) error {
105105
// | Players: uint16 | Threshold: uint16 | Index: uint16 | siLen: uint16 | si: []byte | twoDeltaSiNil: bool | twoDeltaSiLen: uint16 | twoDeltaSi: []byte |
106106
// with all values in big-endian.
107107
if len(data) < 6 {
108-
return fmt.Errorf("rsa_threshold: keyshare unmarshalKeyShareTest failed: data length was too short for reading Players, Threashold, Index")
108+
return fmt.Errorf("rsa_threshold: keyshare unmarshalKeyShareTest failed: data length was too short for reading Players, Threshold, Index")
109109
}
110110

111111
players := binary.BigEndian.Uint16(data[0:2])

0 commit comments

Comments
 (0)