upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--04.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/04.md b/04.md
index bafc5c7..153456a 100644
--- a/04.md
+++ b/04.md
@@ -23,7 +23,7 @@ import crypto from 'crypto'
23import * as secp from 'noble-secp256k1' 23import * as secp from 'noble-secp256k1'
24 24
25let sharedPoint = secp.getSharedSecret(ourPrivateKey, '02' + theirPublicKey) 25let sharedPoint = secp.getSharedSecret(ourPrivateKey, '02' + theirPublicKey)
26let sharedX = sharedPoint.substr(2, 64) 26let sharedX = sharedPoint.slice(2, 67)
27 27
28let iv = crypto.randomFillSync(new Uint8Array(16)) 28let iv = crypto.randomFillSync(new Uint8Array(16))
29var cipher = crypto.createCipheriv( 29var cipher = crypto.createCipheriv(