Skip to content

Commit

Permalink
chore: add public key from ecdh API response
Browse files Browse the repository at this point in the history
  • Loading branch information
AricRedemption committed Oct 25, 2024
1 parent f4e602f commit 117928a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/actions/common/ecdh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,9 @@ export async function process(

const sharedSecret = crypto.createHash('sha256').update(_sharedSecret).digest()

return { sharedSecret: sharedSecret.toString('hex'), externalPubKey }
return {
externalPubKey,
sharedSecret: sharedSecret.toString('hex'),
creatorPubkey: wallet.getPublicKey().toString('hex'),
}
}

0 comments on commit 117928a

Please sign in to comment.