i am attempting to signal a segwit bitcoin transaction and that i wanna know if the issue is with my knowledge construction as a result of i get error : "Code: -26, Error: non-mandatory-script-verify-flag (Signature have to be zero for failed CHECK(MULTI)SIG operation)"
.
the earlier transaction was this.
that is the transaction earlier than signing it:
01000000
01
14fe532eec4ddc9bfd8686a7234300c24a47c60e437ae26e966a43e47f947def
00000000
16
00140429fc6e543ff7b4b75d0c6a60013c125827aa66
ffffffff
02
c409000000000000
16
00140429fc6e543ff7b4b75d0c6a60013c125827aa66
c409000000000000
16
00145951ac8720b1865ba633d19eaa6473afae7c46b3
00000000
01000000
and this the transaction after signing it:
01000000
0001
01
14fe532eec4ddc9bfd8686a7234300c24a47c60e437ae26e966a43e47f947def
00000000
00
ffffffff
02
c409000000000000
16
00140429fc6e543ff7b4b75d0c6a60013c125827aa66
c409000000000000
16
00145951ac8720b1865ba633d19eaa6473afae7c46b3
02
493045022100fc5ea4b7f61cf65b016a0cbeb1d1a7ffc6e24a5b8d6b581372f27e85d515b6e80220204350062193f069f7e67b3244751b8ebf25798b24af1e6ff6f0bdc609d08e1ae601210280a1bfa268074c9171ed0e30f332706789c5138e1428e92506e671b1997eb874
00000000
what’s the downside with my knowledge structute?