Bitcoin

Transaction – I’m getting an “Irregular DER signature” error.

I have been asked a few times by BSE and they have pointed out the problem in a sigh which is not added to the transaction, I have done that but there is still the problem. There was a problem with the commission amount and transaction amount, but the problem has been resolved and now "Code: -26, Error: non-mandatory-script-verify-flag (Non-canonical DER signature)" error.

This was a previous transaction and the address I worked on is the first transaction.

This is my transaction data structure before signing.

01000000
01
14
fe532eec4ddc9bfd8686a7234300c24a47c60e437ae26e966a43e47f947def
00000000
16
00140429fc6e543ff7b4b75d0c6a60013c125827aa66
ffffffff
02
a00f000000000000
16
00140429fc6e543ff7b4b75d0c6a60013c125827aa66
b80b000000000000
16
00145951ac8720b1865ba633d19eaa6473afae7c46b3
00000000
01000000

Here’s the deal after signing:

01000000
0001
01
14
fe532eec4ddc9bfd8686a7234300c24a47c60e437ae26e966a43e47f947def
00000000
00
ffffffff
02
a00f000000000000
16
00140429fc6e543ff7b4b75d0c6a60013c125827aa66
b80b000000000000
16
00145951ac8720b1865ba633d19eaa6473afae7c46b3
02
48
30
4402201be50603dbb4a163572bf98b25f7d90d663de5b439e0cb311fe4ec9ec497a4760220200c123c3af9155ce87971ce496bf415975fb63675d339329e18fe3e3eaa190d54
01 ------> SIGHASH 
21
0280a1bfa268074c9171ed0e30f332706789c5138e1428e92506e671b1997eb874
00000000

So what’s the problem? Even after adding sigh I still have the problem. Thank you in advance.

Related Articles

Back to top button