Compressed Airdrop Merkle Commitment

Validate a recipient list, total it, commit to it with a SHA-256 Merkle tree, and generate & verify inclusion proofs.

1. Recipients

One address, amount per line. Amounts are in compressed-token base units.

Recipients
–
Total amount
–
Valid list
–

Merkle root (hex):
–

2. Inclusion proof

Leaf hash:
–

Proof steps (in order, leaf level first):

–

Verification folds the leaf up with each sibling (sha256(sibling ∥ cur) if the sibling is on the left, otherwise sha256(cur ∥ sibling)) and compares the result to the current root above. With tampering on, the leaf is computed from amount + 1 while the proof and root stay from the untampered list — mirroring the Lean test that a tampered leaf does not verify.

Leaf = sha256(utf8(address) ∥ amountLE8) · Node = sha256(left ∥ right) · A lone odd leaf is promoted unchanged to the next level (not duplicated, no proof step at that level). SHA-256 is computed with the browser's SubtleCrypto (crypto.subtle.digest). Works from file://; no network, no frameworks, no external assets.