diff options
Diffstat (limited to 'src/lib/nip44.ts')
| -rw-r--r-- | src/lib/nip44.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/nip44.ts b/src/lib/nip44.ts index 6025a54f..19384b9b 100644 --- a/src/lib/nip44.ts +++ b/src/lib/nip44.ts @@ -24,7 +24,9 @@ export const u = { }, getConversationKey(privkeyA: string, pubkeyB: string): Uint8Array { - const sharedX = secp256k1.getSharedSecret(hexToBytes(privkeyA), hexToBytes("02" + pubkeyB)).subarray(1, 33); + const sharedX = secp256k1 + .getSharedSecret(hexToBytes(privkeyA), hexToBytes("02" + pubkeyB)) + .subarray(1, 33); return hkdf_extract(sha256, sharedX, utf8ToBytes("nip44-v2")); }, |
