Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libsecp256k1.ecssa_verify_ failed #124

Open
deletelibrary opened this issue Nov 27, 2024 · 0 comments
Open

libsecp256k1.ecssa_verify_ failed #124

deletelibrary opened this issue Nov 27, 2024 · 0 comments

Comments

@deletelibrary
Copy link

sig_hash_0 = sig_hash.from_tx(prevouts, tx, i, sig_hash.ALL)
sig = ssa.sign(sig_hash_0,wallet['private_key'])
pub_key = type_and_payload(prevouts[i].script_pub_key.script)[1]
ssa.assert_as_valid_(sig_hash_0,pub_key,sig)

err
Traceback (most recent call last):
File "C:\Users\27852\Desktop\pow\pow-20\wallet\test_tx\taproot.py", line 57, in
ssa.assert_as_valid_(sig_hash_0,pub_key,sig)
File "C:\Users\27852\AppData\Local\Programs\Python\Python312\Lib\site-packages\btclib\ecc\ssa.py", line 300, in assert_as_valid_
raise BTClibRuntimeError("libsecp256k1.ecssa_verify_ failed")
btclib.exceptions.BTClibRuntimeError: libsecp256k1.ecssa_verify_ failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant