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

bug in segwit transaction #1

Open
DariusParvin opened this issue Oct 30, 2019 · 1 comment
Open

bug in segwit transaction #1

DariusParvin opened this issue Oct 30, 2019 · 1 comment

Comments

@DariusParvin
Copy link

Thank you for this awesome tutorial!

I ran the code to create a transaction, but I get an error message when I try to decode it.
specifically with bitcoind 'decoderawtransaction' i get error code: -22. I tried with other decoders too.

Here's an example transaction that's generated with the code:
010000000001014fd41d549a05ecb69351b91c4d4095984f0bb458e75046a75f7daf91c0fec97301000000171600143eccb863aa870995519e89f242fcaadcf526a34dffffffff01d0fb01000000000017a91487b16bf5c5e43bf1dbd69440556f4f5a1430b5fd87024730450221008ad3c641868acf26bcdeabbf3bfa3cb0a1688938ce01886eb0c4ae712d926c300220799b8da8e3bed0c542abe7b5797173a9e44a51875c16890adb2d2d0776c906fa01210337078f8c4a54b67cd1724a3535cb1918bca186c7a143459c9aac35113d4a958b00000000

@DariusParvin
Copy link
Author

DariusParvin commented Oct 31, 2019

I found it. The length of the signature in the witness field should be "len(signature)+1", as stated in the readme tutorial.

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