Skip to main content

build_presentation

Function build_presentation 

Source
pub fn build_presentation(
    cred: &CredentialRecord,
    selected_claim_keys: &[String],
) -> FieldSelectedPresentation
Expand description

Build a field-selected presentation of cred, disclosing only claims whose keys appear in selected_claim_keys. Keys requested but absent on the credential are silently skipped; the disclosed order follows the credential’s own claim order (deterministic).

This is field selection, not selective disclosure — see FieldSelectedPresentation.