From 171c41832e7ec817b9b2873732db6da46bdb1139 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Sun, 3 Sep 2023 02:52:42 -0400 Subject: [PATCH] spelling: threshold Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- tss/rsa/keyshare.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tss/rsa/keyshare.go b/tss/rsa/keyshare.go index db2f4536a..cdfdf8962 100644 --- a/tss/rsa/keyshare.go +++ b/tss/rsa/keyshare.go @@ -40,7 +40,7 @@ func (kshare *KeyShare) MarshalBinary() ([]byte, error) { } if kshare.Threshold > math.MaxUint16 { - return nil, fmt.Errorf("rsa_threshold: keyshare marshall: Threhsold is too big to fit in a uint16") + return nil, fmt.Errorf("rsa_threshold: keyshare marshall: Threshold is too big to fit in a uint16") } if kshare.Index > math.MaxUint16 { @@ -105,7 +105,7 @@ func (kshare *KeyShare) UnmarshalBinary(data []byte) error { // | Players: uint16 | Threshold: uint16 | Index: uint16 | siLen: uint16 | si: []byte | twoDeltaSiNil: bool | twoDeltaSiLen: uint16 | twoDeltaSi: []byte | // with all values in big-endian. if len(data) < 6 { - return fmt.Errorf("rsa_threshold: keyshare unmarshalKeyShareTest failed: data length was too short for reading Players, Threashold, Index") + return fmt.Errorf("rsa_threshold: keyshare unmarshalKeyShareTest failed: data length was too short for reading Players, Threshold, Index") } players := binary.BigEndian.Uint16(data[0:2])