Skip to content

Commit

Permalink
fix code example in ecdh.setPublicKey fixes nodejs#38540
Browse files Browse the repository at this point in the history
  • Loading branch information
JBaczuk authored May 4, 2021
1 parent 9643128 commit ae8e8bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/crypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -1401,7 +1401,7 @@ Example (obtaining a shared secret):
const {
createECDH,
createHash,
} = await crypto('crypto');
} = await import('crypto');

const alice = createECDH('secp256k1');
const bob = createECDH('secp256k1');
Expand Down

0 comments on commit ae8e8bd

Please sign in to comment.