Skip to content

Commit

Permalink
chore: update ecdh api to use prime256v1 curve
Browse files Browse the repository at this point in the history
  • Loading branch information
AricRedemption committed Oct 22, 2024
1 parent c076ed5 commit aa87057
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/actions/common/ecdh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function process(

const _externalPubKey = Buffer.from(externalPubKey, 'hex')

const ecdhKey = ecdh.createECDH('secp256k1')
const ecdhKey = ecdh.createECDH('prime256v1')
// @ts-ignore
ecdhKey.setPrivateKey(privateKey)

Expand Down

0 comments on commit aa87057

Please sign in to comment.