Skip to content

libsecp256k1.ecssa_verify_ failed #124

Open
@deletelibrary

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions