Skip to main content

reconstruct_capabilities

Function reconstruct_capabilities 

Source
pub fn reconstruct_capabilities(
    card_payload: &Value,
    disclosures: &[String],
) -> Vec<String>
Expand description

Reconstruct the revealed capabilities from a disclosed card payload and the disclosures presented with it. Returns exactly the tools whose disclosure opens a digest in the signed capabilities.tools_sd; a tampered or foreign disclosure contributes nothing. This is the verify side of disclose_capabilities.