Closed bug-hunta closed 3 years ago
I have ressolved the issue.
Solution:
I was using bech32 address, So all I needed to do was to append "01" or it's defined constant "SIGHASH_ALL" to the end of the signature
"signatures":["304502210092f180db9348d8ba99d76628a61b43fe5ab0d5797334670615c1e1cd9ad9799e022049227e343174dfaa5ff215955128a0b23255c59b284268ee22a520d52162bd6601"]
If you are using a bech32 address (starting with bc1) be sure to add "01 (SIGHASH_ALL) " at the end of the signature.
BEFORE ( ERROR: didn't add "01" to the end of the signatures array value(s) ) "signatures": [ "3045022100c7449a84b76dbcef176be03d26d295962f8c06044106dbfc33280b0f0e9a275e02202124b5949b9c379cec05e0facb65d9e0c52b56987939dd736c12fd80a9986086" ],
AFTER ( SOLUTION : adding "01" to the end of the signatures array value(s) ) "signatures": [ "3045022100c7449a84b76dbcef176be03d26d295962f8c06044106dbfc33280b0f0e9a275e02202124b5949b9c379cec05e0facb65d9e0c52b56987939dd736c12fd80a998608601" ],
I am using bech32 address and my signature have 01 at the end but still same error. { error: 'Error validating generated transaction: Error running script for input 0 referencing f58c711f9fce2b1417503d0f21d356c637961515a0b32838bfeacccec629 5a25 at 14: Script was NOT verified successfully.' } Any help appreciated.
tosign: [ '5f7bfb0fc5c32c68a4545ea914a8d621f02d3b6b42e2d168afaa293474d3d393', '0f5ed66f6c029738ab0ee6ef38770d8d953b2cd3a246f73f8daad8987a1f46d7' ], pubkeys: [ '027531438e9f3aaa5263f909bd5648258b3aaeea8edfe1e5f6cacb5a359a97401c', '027531438e9f3aaa5263f909bd5648258b3aaeea8edfe1e5f6cacb5a359a97401c' ], signatures: [ '304402206c0a4b61c823ec777f39ba7c7ce4f48b048b8273bca5fcc6ea52efeffeb8791a02201ae94f4a9e4949d111153d0bf93c440bb4d5236182169540bf16259e0db09eab01', '3044022064044d560424cae7486c374c6e2e2f2c566fa7cd47aaf5a87eaefef80b88264c02203c5068eb828be41c0014756578b946aa0f6845cdb9fa9f1965d54f34c3f34ba201' ]
@skullpunks Sorry for the late reply. I would appreciate it if you contact me privately so we can schedule a google or zoom c all to help you with your issue. Contact me on prncfoli@gmail.com.
@skullpunks is your issue resolved? I'm facing the same issue, have added 01 at the end of the signature but still facing the same issue?