Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Added note to clarify signed data must be hashed before signature or verification process in response to issue indutny#293 .
  • Loading branch information
Red-Bowler committed Nov 24, 2022
1 parent 43ac7f2 commit 20395cf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ Fastest is elliptic#ecdh

## API

> Note: This library does NOT hash the signed data, you must hash it manually.
```javascript
// Example of SHA256 hash with hash.js (use your prefered hash library)
var hash = require('hash.js');
var msgHash = hash.sha256().update(data_to_be_signed_or_verified).digest('hex');
```

### ECDSA

```javascript
Expand Down

0 comments on commit 20395cf

Please sign in to comment.