diff options
| -rw-r--r-- | 04.md | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -20,7 +20,7 @@ Code sample for generating such an event in JavaScript: | |||
| 20 | 20 | ||
| 21 | ```js | 21 | ```js |
| 22 | import crypto from 'crypto' | 22 | import crypto from 'crypto' |
| 23 | import * as secp from 'noble-secp256k1' | 23 | import * as secp from '@noble/secp256k1' |
| 24 | 24 | ||
| 25 | let sharedPoint = secp.getSharedSecret(ourPrivateKey, '02' + theirPublicKey) | 25 | let sharedPoint = secp.getSharedSecret(ourPrivateKey, '02' + theirPublicKey) |
| 26 | let sharedX = sharedPoint.slice(1, 33) | 26 | let sharedX = sharedPoint.slice(1, 33) |