1
0
mirror of https://github.com/bitcoin/bips.git synced 2025-11-03 14:19:40 +00:00

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

This commit is contained in:
MozirDmitriy 2025-10-14 23:38:26 +03:00 committed by GitHub
parent 1cf4130876
commit f98774a68c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)