Skip to content

Commit

Permalink
Add note about message length to README
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid committed Feb 4, 2020
1 parent 268d147 commit d9f7bf0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ const secp256k1 = require('secp256k1')
// if you want to use pure js implementation in node

// generate message to sign
// message should have 32-byte length, if you have some other length you can hash message
// for example `msg = sha256(rawMessage)`
const msg = randomBytes(32)

// generate privKey
Expand Down

0 comments on commit d9f7bf0

Please sign in to comment.