Monday, November 25, 2024
HomeBitcoinMaking an attempt to determine non-canonical DER signature error for a selected...

Making an attempt to determine non-canonical DER signature error for a selected tx


I’ve two transactions, they produce the identical hash. However the first one throws Non-canonical DER signature error and the second would not. It is a customary 2/3 multi-sig transaction.

Tx 1:

020000000001018b4025d76e67ac4b05010832917b3407ee11c17f3ac1f8537ad92dbda905d2760000000000ffffffff020355ea4000000000160014104d11991b81471fce9439dfb22ff144fb5ecf0cabdca700000000001600145809ea020e7a3ff5c09f57b0a52c98ae7e7aee7a040047304402201b4b4642b9bea7274ea74a39d7657867308efbd5866ccedf62f5e2cd0b5f2c9902200996fb466241a1a715d9a93128fe5efd8bde0a3453c109ea0b47a1b0dd4d38150147304402201db836dacb6290d4014f87ecd95ec5fe1c618973437d0e86f2a6266b8861e20c02207415a722f64070f12d2d2b18031b6c9f1829a88dfb8c0f871571a57aaf34930b016952210325da1b6830e251da8acb91d09d7fc162568e9c68dd12bd0f94643fed936dc87c21035497f2acb88278b2323d88f1bc353c0daa3c42abc289fab6ccbd8edb718ae8cd2103cbe6dec1b7944f5e4d4385acaf2fb6980eaa54169b6d422e24db2de61e01a5f553ae00000000

Tx 1 decoded:

{
    "addresses": [
        "ltc1qunwwcdm45r94n0vun35pvhh8d7duxzfcxe4dc9vlwlhe9ych7ufqvp9nn3",
        "ltc1qzpx3rxgms9r3ln55880mytl3gna4ancvuw4pyz",
        "ltc1qtqy75qsw0glltsyl27c22tyc4el84mn65mnej2"
    ],
    "block_height": -1,
    "block_index": -1,
    "confirmations": 0,
    "double_spend": false,
    "charges": 300,
    "hash": "b86b27a622ce8b5336debda81e0dc33e8ab3eb07354789e4bc708e38caa2dce4",
    "inputs": [
        {
            "addresses": [
                "ltc1qunwwcdm45r94n0vun35pvhh8d7duxzfcxe4dc9vlwlhe9ych7ufqvp9nn3"
            ],
            "age": 2718775,
            "output_index": 0,
            "output_value": 1100100314,
            "prev_hash": "76d205a9bd2dd97a53f8c13a7fc111ee07347b91320801054bac676ed725408b",
            "script_type": "pay-to-witness-script-hash",
            "sequence": 4294967295,
            "witness": [
                "",
                "304402201b4b4642b9bea7274ea74a39d7657867308efbd5866ccedf62f5e2cd0b5f2c9902200996fb466241a1a715d9a93128fe5efd8bde0a3453c109ea0b47a1b0dd4d381501",
                "304402201db836dacb6290d4014f87ecd95ec5fe1c618973437d0e86f2a6266b8861e20c02207415a722f64070f12d2d2b18031b6c9f1829a88dfb8c0f871571a57aaf34930b01",
                "52210325da1b6830e251da8acb91d09d7fc162568e9c68dd12bd0f94643fed936dc87c21035497f2acb88278b2323d88f1bc353c0daa3c42abc289fab6ccbd8edb718ae8cd2103cbe6dec1b7944f5e4d4385acaf2fb6980eaa54169b6d422e24db2de61e01a5f553ae"
            ]
        }
    ],
    "outputs": [
        {
            "addresses": [
                "ltc1qzpx3rxgms9r3ln55880mytl3gna4ancvuw4pyz"
            ],
            "script": "0014104d11991b81471fce9439dfb22ff144fb5ecf0c",
            "script_type": "pay-to-witness-pubkey-hash",
            "worth": 1089099011
        },
        {
            "addresses": [
                "ltc1qtqy75qsw0glltsyl27c22tyc4el84mn65mnej2"
            ],
            "script": "00145809ea020e7a3ff5c09f57b0a52c98ae7e7aee7a",
            "script_type": "pay-to-witness-pubkey-hash",
            "worth": 11001003
        }
    ],
    "desire": "low",
    "obtained": "2024-07-12T17:33:01.857762451Z",
    "relayed_by": "3.239.118.85",
    "dimension": 367,
    "whole": 1100100014,
    "ver": 2,
    "vin_sz": 1,
    "vout_sz": 2,
    "vsize": 177
}

Tx 2:

020000000001018b4025d76e67ac4b05010832917b3407ee11c17f3ac1f8537ad92dbda905d2760000000000ffffffff020355ea4000000000160014104d11991b81471fce9439dfb22ff144fb5ecf0cabdca700000000001600145809ea020e7a3ff5c09f57b0a52c98ae7e7aee7a040047304402201db836dacb6290d4014f87ecd95ec5fe1c618973437d0e86f2a6266b8861e20c02207415a722f64070f12d2d2b18031b6c9f1829a88dfb8c0f871571a57aaf34930b014730440220780eedf386e77f5acaceaf948251fa3bbf51e7fcc401bf7973a08f65b99eadc702200019a281127211a29c5b827b80967154d05b9224f6bf7b77baff13e63d576545016952210325da1b6830e251da8acb91d09d7fc162568e9c68dd12bd0f94643fed936dc87c21035497f2acb88278b2323d88f1bc353c0daa3c42abc289fab6ccbd8edb718ae8cd2103cbe6dec1b7944f5e4d4385acaf2fb6980eaa54169b6d422e24db2de61e01a5f553ae00000000

Tx 2 decoded:

{
    "addresses": [
        "ltc1qunwwcdm45r94n0vun35pvhh8d7duxzfcxe4dc9vlwlhe9ych7ufqvp9nn3",
        "ltc1qzpx3rxgms9r3ln55880mytl3gna4ancvuw4pyz",
        "ltc1qtqy75qsw0glltsyl27c22tyc4el84mn65mnej2"
    ],
    "block_height": -1,
    "block_index": -1,
    "confirmations": 0,
    "double_spend": false,
    "charges": 300,
    "hash": "b86b27a622ce8b5336debda81e0dc33e8ab3eb07354789e4bc708e38caa2dce4",
    "inputs": [
        {
            "addresses": [
                "ltc1qunwwcdm45r94n0vun35pvhh8d7duxzfcxe4dc9vlwlhe9ych7ufqvp9nn3"
            ],
            "age": 2718775,
            "output_index": 0,
            "output_value": 1100100314,
            "prev_hash": "76d205a9bd2dd97a53f8c13a7fc111ee07347b91320801054bac676ed725408b",
            "script_type": "pay-to-witness-script-hash",
            "sequence": 4294967295,
            "witness": [
                "",
                "304402201db836dacb6290d4014f87ecd95ec5fe1c618973437d0e86f2a6266b8861e20c02207415a722f64070f12d2d2b18031b6c9f1829a88dfb8c0f871571a57aaf34930b01",
                "30440220780eedf386e77f5acaceaf948251fa3bbf51e7fcc401bf7973a08f65b99eadc702200019a281127211a29c5b827b80967154d05b9224f6bf7b77baff13e63d57654501",
                "52210325da1b6830e251da8acb91d09d7fc162568e9c68dd12bd0f94643fed936dc87c21035497f2acb88278b2323d88f1bc353c0daa3c42abc289fab6ccbd8edb718ae8cd2103cbe6dec1b7944f5e4d4385acaf2fb6980eaa54169b6d422e24db2de61e01a5f553ae"
            ]
        }
    ],
    "outputs": [
        {
            "addresses": [
                "ltc1qzpx3rxgms9r3ln55880mytl3gna4ancvuw4pyz"
            ],
            "script": "0014104d11991b81471fce9439dfb22ff144fb5ecf0c",
            "script_type": "pay-to-witness-pubkey-hash",
            "worth": 1089099011
        },
        {
            "addresses": [
                "ltc1qtqy75qsw0glltsyl27c22tyc4el84mn65mnej2"
            ],
            "script": "00145809ea020e7a3ff5c09f57b0a52c98ae7e7aee7a",
            "script_type": "pay-to-witness-pubkey-hash",
            "worth": 11001003
        }
    ],
    "desire": "low",
    "obtained": "2024-07-12T17:39:55.39046822Z",
    "relayed_by": "3.227.22.189",
    "dimension": 367,
    "whole": 1100100014,
    "ver": 2,
    "vin_sz": 1,
    "vout_sz": 2,
    "vsize": 177
}

Why is the primary one failing? What am I doing flawed?
I am utilizing this python lib: litecoin-utils

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments