Skip to content

Commit

Permalink
dev stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jawndiego committed Jan 23, 2024
1 parent d363865 commit 63a2211
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/signing/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,14 @@ export default class SignatureRequestManager {
timestamp: this.getTimeStamp(),
}

const serverDHKey = await crypto.from_hex(validator.x25519_public_key)
const serverDHKey = await crypto.fromHex(validator.x25519_public_key)

const formattedValidators = await Promise.all(
validatorsInfo.map(async (v) => {
return {
...v,
x25519_public_key: Array.from(
await crypto.from_hex(v.x25519_public_key)
await crypto.fromHex(v.x25519_public_key)
),
}
})
Expand All @@ -171,7 +171,7 @@ export default class SignatureRequestManager {
(x) => x.charCodeAt(0)
)

const encryptedMessage = await crypto.encrypt_and_sign(
const encryptedMessage = await crypto.encryptAndSign(
this.signer.pair.secretKey,
encoded,
serverDHKey
Expand Down

0 comments on commit 63a2211

Please sign in to comment.