For the complete documentation index, see llms.txt.
aztec-nr - noir_aztec::protocol::hash

Function accumulate_sha256_with_separator

pub fn accumulate_sha256_with_separator(separator: u32, v0: Field, v1: Field) -> Field

Computes sha256 hash of 2 input fields, prefixed by a domain separator, so that the result cannot collide with an accumulate_sha256 over the same two fields.

@returns A truncated field (i.e., the first byte is always 0).