Skip to content

Commit

Permalink
Merge branch 'v2.0' into feat/adds-is-scam-to-verify
Browse files Browse the repository at this point in the history
  • Loading branch information
ganchoradkov authored Sep 8, 2023
2 parents 178c7c6 + 0401bfc commit 43f9677
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/utils/src/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export function deriveSymKey(privateKeyA: string, publicKeyB: string): string {
const sharedKey = x25519.sharedKey(
fromString(privateKeyA, BASE16),
fromString(publicKeyB, BASE16),
true,
);
const hkdf = new HKDF(SHA256, sharedKey);
const symKey = hkdf.expand(KEY_LENGTH);
Expand Down

0 comments on commit 43f9677

Please sign in to comment.