aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/nip44.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-24 13:01:02 -0800
committerAdam Soltys <[email protected]>2026-02-24 13:01:02 -0800
commitdb59579a2efa8416f78c855faa7d7e62048447e5 (patch)
tree28444081de0120f21f7596198937bdd52fe43495 /src/lib/nip44.ts
parent7eec7ac0b322b510b4e2cedef62422b6043d6405 (diff)
downloadcoinos-ui-db59579a2efa8416f78c855faa7d7e62048447e5.tar.gz
coinos-ui-db59579a2efa8416f78c855faa7d7e62048447e5.zip
lint
Diffstat (limited to 'src/lib/nip44.ts')
-rw-r--r--src/lib/nip44.ts4
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"));
},