Context
campaign::register(env, participant, leaf, proof) (lib.rs ~L328) verifies a Merkle proof against a
stored root. If proof length is unbounded, an attacker can submit huge proofs to waste resources, and
roots with pathological depth can make legitimate registration too expensive.
Scope
- Enforce a max proof length / max tree depth.
- Reject malformed proofs early with a typed error.
- Document the supported allowlist size vs depth.
Acceptance criteria
Context
campaign::register(env, participant, leaf, proof)(lib.rs ~L328) verifies a Merkle proof against astored root. If
prooflength is unbounded, an attacker can submit huge proofs to waste resources, androots with pathological depth can make legitimate registration too expensive.
Scope
Acceptance criteria