mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
Remove extra semicolon
This commit is contained in:
@@ -78,7 +78,7 @@ function deriveKeypair(seed, options) {
|
|||||||
const messageToVerify = hash('This test message should verify.')
|
const messageToVerify = hash('This test message should verify.')
|
||||||
const signature = method.sign(messageToVerify, keypair.privateKey)
|
const signature = method.sign(messageToVerify, keypair.privateKey)
|
||||||
if (method.verify(messageToVerify, signature, keypair.publicKey) !== true) {
|
if (method.verify(messageToVerify, signature, keypair.publicKey) !== true) {
|
||||||
throw new Error('derived keypair did not generate verifiable signature');
|
throw new Error('derived keypair did not generate verifiable signature')
|
||||||
}
|
}
|
||||||
return keypair
|
return keypair
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user