Skip to main content

request_digest_unsigned

Function request_digest_unsigned 

pub fn request_digest_unsigned(
    nonce: &RequestNonce,
    payload: &[u8],
) -> RequestDigest
Expand description

The request digest of a response to an unsigned request: SHA-256 over the 16 nonce bytes followed by the request payload exactly as received (empty for a bodiless request), marked RequestKind::Unsigned. The nonce has a fixed length, so the split between the two is unambiguous.