Skip to main content

hash_data

Function hash_data 

Source
pub fn hash_data(
    credential: &Value,
    unsigned: &Map<String, Value>,
) -> Result<[u8; 64]>
Expand description

Compute the 64-byte W3C Data Integrity signing input for a JCS cryptosuite: SHA-256 of the canonical proof configuration, joined with SHA-256 of the canonical unsecured document. This is the value that gets signed.