Skip to content

Commit

Permalink
NIP-04 follow up: use new import in code sample
Browse files Browse the repository at this point in the history
  • Loading branch information
sistemd authored and fiatjaf committed Mar 13, 2023
1 parent b2c21ab commit a886b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 04.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a886b43

Please # to comment.