File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
packages/ethereum-cryptography Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -322,9 +322,8 @@ console.log(
322
322
The ` secp256k1 ` submodule provides a library for elliptic curve operations on
323
323
the curve Secp256k1 .
324
324
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 .
328
327
329
328
### Function types
330
329
@@ -346,7 +345,7 @@ const privateKey = Buffer.from(
346
345
"hex"
347
346
);
348
347
349
- console.log(sign(msgHash, privateKey).signature.toString("hex"));
348
+ console.log(Buffer.from( sign(msgHash, privateKey) ).signature.toString("hex"));
350
349
` ` `
351
350
352
351
## Hierarchical Deterministic keys submodule
You can’t perform that action at this time.
0 commit comments