Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Jun 14, 2023
1 parent f795a8d commit eeb3b06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ secp.sign(msgHash, privKey, { lowS: false }); // Malleable signature
secp.sign(msgHash, privKey, { extraEntropy: true }); // Improved security
```

Generates low-s deterministic-k RFC6979 ECDSA signature.
Generates low-s deterministic-k RFC6979 ECDSA signature. Assumes hash of message,
which means you'll need to do something like `sha256(message)` before signing.

1. `lowS: false` allows to create malleable signatures, for compatibility with openssl.
Default `lowS: true` prohibits signatures which have (sig.s >= CURVE.n/2n) and is compatible with BTC/ETH.
Expand Down

0 comments on commit eeb3b06

Please sign in to comment.