Skip to main content

attestation_bytes

Function attestation_bytes 

Source
pub fn attestation_bytes(
    event: &Value,
    prev_event_hash: Option<&str>,
) -> Result<Vec<u8>, ChainError>
Expand description

The bytes a signature covers: canonical(view sans signature sans this_event_hash) || prev_event_hash.

§Errors

Returns ChainError if the value cannot be canonicalized.