Skip to content

Commit

Permalink
test: 2
Browse files Browse the repository at this point in the history
  • Loading branch information
pred695 committed Apr 17, 2024
1 parent 16c0f0c commit 92f3e67
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions output.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
07000000000000000000000000000000000000000000000000000000000000000000000089ad28d689aa0222e107a7477a7755763953963ab61353d0f6e5b42c4debfb9b4ee41f66ffff001f4ad40000
010000000001010000000000000000000000000000000000000000000000000000000000000000ffffffff1b03951a0604f15ccf5609013803062b9b5a0100072f425443432f20ffffffff02de538c0100000000160014df4bf9f3621073202be59ae590f55f42879a21a00000000000000000266a24aa21a9ed3a44995d77b02e34b810da0cb9e5af0ca02aafeed77241c892d7ba23e4779c8b0120000000000000000000000000000000000000000000000000000000000000000000000000
0faaf895a1035fd964229b745660f13592236663ea0f69961ab427f00333ab48
070000000000000000000000000000000000000000000000000000000000000000000000c16bcf5d8c955166695eec0a1d4891b2887d2b1856938cbc48663905357427716ee81f66ffff001fbd740000
010000000001010000000000000000000000000000000000000000000000000000000000000000ffffffff1b03951a0604f15ccf5609013803062b9b5a0100072f425443432f20ffffffff02de538c0100000000160014df4bf9f3621073202be59ae590f55f42879a21a00000000000000000266a24aa21a9ed392466efe913d353921707d69a39cfb22952a7d75de836728f73705b3c5db5e40120000000000000000000000000000000000000000000000000000000000000000000000000
ebc77710b2a547fe6cc86bc5b86fe810f291bcd40a9dd5e40dc8b84e866adc10
82f9f96db7bdbb9e70626747632e373b34eefd50d613dfea7092744169591b6e
7cb2a4f55245bae141a5d6ad51c08d7a9fdf2c2b905e4d97639ed80b82e69800
a9e537569db3c64340ed5abcdd983e9bb1b6ad6f90c93bc80d31c5cc0490bcea
Expand Down
7 changes: 6 additions & 1 deletion witnessMerkle.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 92f3e67

Please sign in to comment.