diff --git a/pkg/crypto/base58.go b/pkg/crypto/base58.go index c3d168766..6890aae17 100644 --- a/pkg/crypto/base58.go +++ b/pkg/crypto/base58.go @@ -96,11 +96,11 @@ func Base58CheckDecode(s string) (b []byte, err error) { } if len(b) < 5 { - return nil, errors.New("invalid base-58 check string: missing checksum.") + return nil, errors.New("invalid base-58 check string: missing checksum") } if !bytes.Equal(hash.Checksum(b[:len(b)-4]), b[len(b)-4:]) { - return nil, errors.New("invalid base-58 check string: invalid checksum.") + return nil, errors.New("invalid base-58 check string: invalid checksum") } // Strip the 4 byte long hash.