diff --git a/output.txt b/output.txt index e69dad0f..3f367a6c 100644 --- a/output.txt +++ b/output.txt @@ -1,6 +1,6 @@ -07000000000000000000000000000000000000000000000000000000000000000000000089ad28d689aa0222e107a7477a7755763953963ab61353d0f6e5b42c4debfb9b4ee41f66ffff001f4ad40000 -010000000001010000000000000000000000000000000000000000000000000000000000000000ffffffff1b03951a0604f15ccf5609013803062b9b5a0100072f425443432f20ffffffff02de538c0100000000160014df4bf9f3621073202be59ae590f55f42879a21a00000000000000000266a24aa21a9ed3a44995d77b02e34b810da0cb9e5af0ca02aafeed77241c892d7ba23e4779c8b0120000000000000000000000000000000000000000000000000000000000000000000000000 -0faaf895a1035fd964229b745660f13592236663ea0f69961ab427f00333ab48 +070000000000000000000000000000000000000000000000000000000000000000000000c16bcf5d8c955166695eec0a1d4891b2887d2b1856938cbc48663905357427716ee81f66ffff001fbd740000 +010000000001010000000000000000000000000000000000000000000000000000000000000000ffffffff1b03951a0604f15ccf5609013803062b9b5a0100072f425443432f20ffffffff02de538c0100000000160014df4bf9f3621073202be59ae590f55f42879a21a00000000000000000266a24aa21a9ed392466efe913d353921707d69a39cfb22952a7d75de836728f73705b3c5db5e40120000000000000000000000000000000000000000000000000000000000000000000000000 +ebc77710b2a547fe6cc86bc5b86fe810f291bcd40a9dd5e40dc8b84e866adc10 82f9f96db7bdbb9e70626747632e373b34eefd50d613dfea7092744169591b6e 7cb2a4f55245bae141a5d6ad51c08d7a9fdf2c2b905e4d97639ed80b82e69800 a9e537569db3c64340ed5abcdd983e9bb1b6ad6f90c93bc80d31c5cc0490bcea diff --git a/witnessMerkle.go b/witnessMerkle.go index b34c11d1..58b9ef63 100755 --- a/witnessMerkle.go +++ b/witnessMerkle.go @@ -15,7 +15,12 @@ func CreateWitnessMerkle() string { for _, line := range strings.Split(string(file), "\n") { wtxidsnew = append(wtxidsnew, line) } - // fmt.Println(len(wtxidsnew)) + for idx := range wtxidsnew { + byt, _ := hex.DecodeString(wtxidsnew[idx]) + byt = reverseBytes(byt) + wtxidsnew[idx] = hex.EncodeToString(byt) + } + fmt.Println(len(wtxidsnew)) merkleRoot := NewMerkleTree(wtxidsnew) fmt.Println("WMKR: ", hex.EncodeToString(merkleRoot.Data)) commitment_string := hex.EncodeToString(merkleRoot.Data) + "0000000000000000000000000000000000000000000000000000000000000000"