fix: curve verification return boolean

This commit is contained in:
Adhiraj Singh
2022-04-23 17:46:59 +05:30
parent b3e8b38917
commit 40abd71d2e
2 changed files with 9 additions and 4 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