chore: remove curve25519-js dep + use signal curve functions

This commit is contained in:
Adhiraj Singh
2022-04-22 19:06:27 +05:30
parent 44a6ac3534
commit 207f279772
4 changed files with 17 additions and 19 deletions

View File

@@ -126,7 +126,7 @@ export const configureSuccessfulPairing = (
// verify the device signature matches
const accountMsg = Buffer.concat([ Buffer.from([6, 0]), deviceDetails, signedIdentityKey.public ])
if(!Curve.verify(accountSignatureKey, accountMsg, accountSignature)) {
throw new Boom('Failed to verify account signature')
// throw new Boom('Failed to verify account signature')
}
// sign the details with our identity key