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
It looks like the ecdsaSign() function expects the hash of a message instead of the message itself.
The Usage section could be clearer:
// msghash should be 32-byte hash of a message, e.g. sha256(msg)// here using random data just for illustration and testconstmsghash32=randomBytes(32)[snip]// sign the messageconstsigObj=secp256k1.ecdsaSign(msghash32,privKey)
It looks like the ecdsaSign() function expects the hash of a message instead of the message itself.
The Usage section could be clearer:
This would also fix #132
The text was updated successfully, but these errors were encountered: