bip-340: set all_passed=False on key generation mismatch

This commit is contained in:
MozirDmitriy authored and GitHub committed 2025-10-14 23:38:26 +03:00
1 parent 1cf4130876
commit f98774a68c
1 file changed
+1
+1
View File
@@ -162,6 +162,7 @@ def test_vectors() -> bool:
print(' * Failed key generation.')
print(' Expected key:', pubkey.hex().upper())
print(' Actual key:', pubkey_actual.hex().upper())
all_passed = False
aux_rand = bytes.fromhex(aux_rand_hex)
try:
sig_actual = schnorr_sign(msg, seckey, aux_rand)