Trouble with validating merkle proof #485
Unanswered
june-cho-88
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Let me see if I understand it
That looks right to me. Am I reading it wrong? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just picked a random transaction to validate which is 94c8536b564c166286d850f9a93835703463e92403d8267e0bb81117242a808c.
My GetMerkleProofResponse gave these following data:
When I'm trying to build a partial merkle tree based on this documentation, it doesn't match with full merkle tree.
For example, first of merkle proof hashes, [0]12d129303667035e96b34d69fd4bc701ed9b01a20c2c2c8978624505b4f23f9c, should be on a left side of depth 2 according to full merkle tree, but the second flag bit(0) says it is on a left of a root, depth 1.
It seems like there is nothing wrong with bchd or transaction itself.
Did I misunderstand the documentation or something?
Beta Was this translation helpful? Give feedback.
All reactions