From ae8e8bd557318262692e744fd74a0e56ba967cd3 Mon Sep 17 00:00:00 2001 From: Jordan Baczuk Date: Tue, 4 May 2021 17:52:46 -0600 Subject: [PATCH] fix code example in ecdh.setPublicKey fixes #38540 --- doc/api/crypto.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/crypto.md b/doc/api/crypto.md index 88d617949abdf4..d0a3bb41b0ecce 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -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');