You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,8 +65,8 @@ All signature schemes use the generic interfaces of `PrivateKey` and `PublicKey`
65
65
66
66
* ECDSA
67
67
* public keys are compressed or uncompressed.
68
-
* ephemeral key is derived from the private key, hash and the system entropy (based on https://golang.org/pkg/crypto/ecdsa/).
69
68
* supports NIST P-256 (secp256r1) and secp256k1 curves.
69
+
* For NIST P-256, ephemeral key is derived from the private key, hash and the system entropy (based on https://golang.org/pkg/crypto/ecdsa/). For secp256k1, ephemeral key is deterministically formed following RFC 6979 (based on github.com/ethereum/go-ethereum/crypto/secp256k1)
// (same slice is returned if S is already normalized)
331
331
// It assumes len(sig) == 2*nLen where nLen is the byte-length of the curve order.
332
332
// This is needed when the underlying signature verification requires S to be in the lower range (to avoid signature malleability). In this package, verification allows high S signatures to be accepted.
333
-
// The function checks that S is in the correct range [0, n-1] before normalizing it. If S is not in the correct range, the function returns a false boolean. (S will be checked against 0 in the verification function - check against N is inlcuded here)
333
+
// The function checks that S is in the correct range [0, n-1] before normalizing it.
334
+
// If S is not in the correct range, the function returns a false boolean.
335
+
// (S will be checked against 0 in the verification function - check against N is inlcuded here)
334
336
// returns:
335
337
// - newSig, true if S is in the valid range and was normalized to low S
0 commit comments