NIP-04 follow up: use new import in code sample

This commit is contained in:
fcked 2023-03-13 18:29:24 +01:00 committed by fiatjaf_
parent b2c21ab10c
commit a886b43b48

2
04.md
View File

@ -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)