Validate a recipient list, total it, commit to it with a SHA-256 Merkle tree, and generate & verify inclusion proofs.
One address, amount per line. Amounts are in compressed-token base units.
Merkle root (hex):–
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.
The program solana-os-lean-programs/Airdrop.lean anchors the Merkle root above on chain and pays each
recipient exactly once from a lamport pool. The theorem to cover its compiled ELF,
Airdrop.Deployed.bytecode_ok, is written but not yet kernel-checked: every run of those exact bytes that succeeds did exactly one of Init /
AddTicket / Claim, with the checks and the exact final state stated there (LAUNCH.md).
For this live demo, recipient amounts are paid in lamports at lamports per unit.
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.