Skip to main content

prove_membership

Function prove_membership 

Source
pub fn prove_membership(
    cp: &Checkpoint,
    committed_ids: &[StrongDigest],
    members: &[StrongDigest],
) -> Result<MembershipProof, QdnfError>
Expand description

Build a proof that members are a subset of committed_ids used to build cp.

QdnfError::Capacity if members.len() > MAX_PROOF_IDS or committed_ids.len() > MAX_CHECKPOINT_OPS. QdnfError::Conflict if any member id appears more than once. QdnfError::Malformed if any member is not in committed_ids, or if cp was not built from committed_ids.