iguana update

jl777(62)
Published in
#iguana
Words
161
Reading
1 min
Listen
Play
10y

had to rework the tx construction and signing code so now can create any standard or custom bitcoin transaction using JSON. dealing with p2sh scripts with if/else conditionals that have pay to hash and cltv inside them.

All the while following: http://bitcoinfactswiki.github.io/OP_CHECKSIG/

For two different coins at the same time. I explained in the prior post the atomic swap protocol, here is the highlight reel:

alice fee: http://explorebtcd.info/tx/c779c6bce4ae714ea993e193aef4dbed53411d28fc4c37254ffe7c2dd599f965
bob fee: https://blockchain.info/tx/8972e5efe9c50ce53e67cd28e27a35a5c5a63c82f0fc57c0f8f4ecea56cff12b

bob deposit: https://blockchain.info/tx/02de5ee83893b0cf4425174c9136eb3ce6385d1c229df0b3df70216c642b4a70

after bob deposit confirmed:
alice payment http://explorebtcd.info/tx/d5af58083c5f1cb7dcaec0b37cf369d0a9347bc58c9b4ab3ceee957019046346

after alice payment confirmed:
bob payment: https://blockchain.info/tx/c0e1878fc7f771f86ab44364445bad8dd5c37e4b4c2a5abb41575b9c55d17f6b

alice spending bob payment:
01000000016b7fd1559c5b5741bb5a2a4c4b7ec3d58dad5b446443b46af871f7c78f87e1c000000000d2483045022100fe525e98f13f57b1db4137b63898eb5c5110686220f936fbfba947eb2ba95e2a0220666c4ff5c818a553b1a3dd1834b9d90b45ec8bce5219e16396612f0c69a885ec012029eaebaaacbf20946af0141977494304985804bb3a799b3cfcd67f95e7d9101e004c6763042027a957b1752103175cf93574c31637b8c2d8acd5319e3cd23761b5e418d32c6bcb194972ba9273ac67a91461c860a1e8cc35ff310ba0f86e568fc6ebfff511882102a9669e63ef1ab04913615c2f3887ea3584f81e5f08feee9535b19ab3739d8afdac68ffffffff01474d0000000000001976a914b7128d2ee837cf03e30a2c0e3e0181f7b9669bb688ac00000000

bob spending alice's 2of2 multisig:
010000000f0ea95701466304197095eeceb34a9b8cc57b34a9d069f37cb3c0aedcb71c5f3c0858afd500000000904730440220626010de8205712edb16560410fb2e99c1c602aa25d77575471321c62c1b33e30220684ab1e4037e1b38c25fb1f175e07a54621ffca4e37659019dcfa1d7ac463b0e0147304402205f907d97d9b229ce660f4bf13382e04132e042d49d1ea043a3043ea76e4c6f710220177f69d1be52744c0f55b2be106575159efffd5c8d84ca85b2cb0741d022fbaa01ffffffff01706f9800000000001976a91454a752f0d71b89d7c014ed0be29ca231c9546f9f88ac00000000

well even though the iguana code accepts the raw transactions it is getting the dreaded error -22 on the live network, so I need to trouble shoot that. it might seem like not much progress, but getting the raw transactions passing the internal checks is a big improvement. Also, I have been spending time helping out a new project over the weekend, so that took some time away.

iguana update | Ecency