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

Merge pull request #2002 from MozirDmitriy/fix/bip340-test-harness-keygen-failure-flag

This commit is contained in:
Jon Atack 2025-10-16 04:02:23 -07:00 committed by GitHub
commit 1d186274ea
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(' * Failed key generation.')
print(' Expected key:', pubkey.hex().upper()) print(' Expected key:', pubkey.hex().upper())
print(' Actual key:', pubkey_actual.hex().upper()) print(' Actual key:', pubkey_actual.hex().upper())
all_passed = False
aux_rand = bytes.fromhex(aux_rand_hex) aux_rand = bytes.fromhex(aux_rand_hex)
try: try:
sig_actual = schnorr_sign(msg, seckey, aux_rand) sig_actual = schnorr_sign(msg, seckey, aux_rand)