Skip to main content

create_disclosure_with_salt

Function create_disclosure_with_salt 

pub fn create_disclosure_with_salt(
    claim_name: Option<&str>,
    claim_value: &Value,
    salt: &str,
) -> Result<(String, String), ViError>
Expand description

Create a disclosure with a caller-supplied salt.

claim_name selects the shape: Some produces the object-property form, None the array-element form. Supplying the salt is what makes output comparable against the reference implementation’s pinned test vectors.

Returns (disclosure_b64, disclosure_hash).