clarity-bitcoin icon indicating copy to clipboard operation
clarity-bitcoin copied to clipboard

Verify merkle proof with reverse root

Open friedger opened this issue 4 years ago • 1 comments

The function verify-merkle-proof expects the reverse merkle root. However, tx-was-mined? passes in the normal merkle root.

friedger avatar May 18 '21 14:05 friedger

One possible solution: https://github.com/friedger/clarity-friedger-pool/commit/51bc15470a5395d3497041b0f44373574537021c#diff-9cbd4f5ed8cf4b56f6c1c387d6a01cb26e6f66bd518fabda78435ab79a092a1aR744

friedger avatar May 18 '21 19:05 friedger