Skip to content

Commit dbceace

Browse files
authored
Merge pull request #220 from ChALkeR/patch-1
doc: fix bls example
2 parents 40ef465 + 8858209 commit dbceace

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ const blss = bls12_381.shortSignatures;
352352
const publicKey2 = blss.getPublicKey(secretKey);
353353
const msgp2 = blss.hash(msg, 'BLS_SIG_BLS12381G1_XMD:SHA-256_SSWU_RO_NUL_');
354354
const signature2 = blss.sign(msgp2, secretKey);
355-
const isValid2 = blss.verify(signature2, msgp2, publicKey);
355+
const isValid2 = blss.verify(signature2, msgp2, publicKey2);
356356
console.log({ publicKey2, signature2, isValid2 });
357357

358358
// Aggregation

0 commit comments

Comments
 (0)