Skip to content

Commit 20395cf

Browse files
authored
Update README.md
Added note to clarify signed data must be hashed before signature or verification process in response to issue indutny#293 .
1 parent 43ac7f2 commit 20395cf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ Fastest is elliptic#ecdh
4343

4444
## API
4545

46+
> Note: This library does NOT hash the signed data, you must hash it manually.
47+
```javascript
48+
// Example of SHA256 hash with hash.js (use your prefered hash library)
49+
var hash = require('hash.js');
50+
var msgHash = hash.sha256().update(data_to_be_signed_or_verified).digest('hex');
51+
```
52+
4653
### ECDSA
4754

4855
```javascript

0 commit comments

Comments
 (0)