Skip to content

Commit 797a76e

Browse files
committed
Update README
1 parent 373fcb3 commit 797a76e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/ethereum-cryptography/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,8 @@ console.log(
322322
The `secp256k1` submodule provides a library for elliptic curve operations on
323323
the curve Secp256k1.
324324

325-
It has the exact same API than the version `3.x` of the native module
326-
[`secp256k1` from cryptocoinjs](https://github.com/cryptocoinjs/secp256k1-node),
327-
but it's backed by [`elliptic`](https://www.npmjs.com/package/elliptic).
325+
It has the exact same API than the version `4.x` of the [`secp256k1`](https://github.com/cryptocoinjs/secp256k1-node)
326+
module from cryptocoinjs.
328327

329328
### Function types
330329

@@ -346,7 +345,7 @@ const privateKey = Buffer.from(
346345
"hex"
347346
);
348347
349-
console.log(sign(msgHash, privateKey).signature.toString("hex"));
348+
console.log(Buffer.from(sign(msgHash, privateKey)).signature.toString("hex"));
350349
```
351350

352351
## Hierarchical Deterministic keys submodule

0 commit comments

Comments
 (0)