From a886b43b48d3e52441bf97e1aa0de39ac2560843 Mon Sep 17 00:00:00 2001 From: fcked Date: Mon, 13 Mar 2023 18:29:24 +0100 Subject: [PATCH] NIP-04 follow up: use new import in code sample --- 04.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/04.md b/04.md index 350f9c0..f34d09b 100644 --- a/04.md +++ b/04.md @@ -20,7 +20,7 @@ Code sample for generating such an event in JavaScript: ```js import crypto from 'crypto' -import * as secp from 'noble-secp256k1' +import * as secp from '@noble/secp256k1' let sharedPoint = secp.getSharedSecret(ourPrivateKey, '02' + theirPublicKey) let sharedX = sharedPoint.slice(1, 33)