Title: Error transaction help me Post by: honadu on November 30, 2017, 08:30:00 AM i transaction for error : Validation Error: BitcoindException(super=com.neemre.btcdcli4j.core.BitcoindException: Error #-26: 16: mandatory-script-verify-flag-failed (Non-canonical DER signature), code=-26) { "hash": "9cce9d3b62917647050df970270700b56d69530ad23028dcc782e61f81d77ad8", "ver": 1, "vin_sz": 2, "vout_sz": 1, "size": 405, "in": [{"prev_out": {"hash": "50748b7a193a0b23f1e9494b511312f954cc6cf4792bacc69d207d16002080d","n": "0"}, "scriptSig":"30460221009e38f007ccc1d411e9dba6e03a932ee5076e2f7f4fa6c38b9fa6ad972655460221009 9f89638981d465629e65c02bc5fa38fb9ca49e2d3fd9f83326ce8678195ac1601 04a6fc4cf229381673741d3b5673a2968007fdd16c52f7e2cba082e9ee5c429dcbf6535ef6d26f2 7d828c36d454e2afe880c0642b429c1a6136a2b29e5ccbcd", "sequence": 4294967295 }, {"prev_out": {"hash": "3fad794a884fdbe30fec74b224efda235eb05f7944050183826073ee05f41","n": "0"}, "scriptSig":"3045022100d2f9171fdce54734818bc6314389b2d7cce4c15cc6fa556b3886860e493b1a02204ae 329de78e09aad4dc52a0bec8c339c8c8e5f28cca6c47928acd26f95c2364d01 04a6fc4cf229381673741d3b5673a2968007fdd16c52f7e2cba0d22e9ee5c429dcbf6535ef6d26f 27d828c36d454e2afe880c0642b429c1a6136a2b29e5ccbcd", "sequence": 4294967295 }], "out": [{"value": "50.03560000", "scriptPubKey": "OP_DUP OP_HASH160 5f8f7b1e05c54508c471f1bb9a282f53bc1d21 OP_EQUALVERIFY OP_CHECKSIG" } ] } Title: Re: Error transaction help me Post by: honadu on November 30, 2017, 08:50:46 AM If anyone can help me get 0,5 btc Title: Re: Error transaction help me Post by: klaaas on November 30, 2017, 10:03:04 AM Read this post error 16: mandatory-script-verify-flag-failed (https://bitcointalk.org/index.php?topic=1455675.0)
I hope it helps. Title: Re: Error transaction help me Post by: amaclin1 on November 30, 2017, 10:41:00 AM Can you post your transaction in raw hex form? Not json
Title: Re: Error transaction help me Post by: pebwindkraft on November 30, 2017, 11:15:51 PM I took a quick look at the second sig, and the length field of the signature for R-value:
Code: 30: OP_SEQUENCE_0x30: type tag indicating SEQUENCE, begin sigscript I can see a double zero is there, so the length of the R-Value should be 21hex, 33 bytes decimal. In you case it would end with "02". However: the 02 should be the type tag indicating length for S-Value, and 21 the length for your S-Value (which it is...). I just added a "DD" into the end of the R-Value, then it decodes correctly: Code: 30: OP_SEQUENCE_0x30: type tag indicating SEQUENCE, begin sigscript So I guess the library you are using is not assembling the signatures correctly. What are you using? |