bal-source
Where BALs and proofs come from. Two traits — BalSource
(head, headers, blocks with their BAL) and StateSource
(eth_getProof) — plus a JSON-RPC implementation, Merkle-proof
verification against a header's state_root, and a primary/backup
combinator.
use ;
# async
verify_account_proof checks the account leaf against state_root and
every storage leaf against the account's storage root; a zero value is
proven by exclusion. check_requested refuses a proof that answers for
slots you did not ask about. The trie verifier runs under a panic guard,
so a crafted node cannot abort the process.
Transport: 30 s timeout, no redirects, 64 MiB response cap. The day-0
probe (JsonRpcSource::probe) reports whether an endpoint serves BALs,
for how old blocks, and how far back it serves proofs.
Part of balq.