From d9f7bf09a4c6f9ffd91615adf9c6d2b301107fa4 Mon Sep 17 00:00:00 2001 From: Kirill Fomichev Date: Tue, 4 Feb 2020 21:41:26 +0300 Subject: [PATCH] Add note about message length to README --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 41da50f..42d8330 100644 --- a/README.md +++ b/README.md @@ -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