> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/mainnet/llms.txt

# Function accumulate_sha256_with_separator

Module: `noir_aztec::protocol::hash`

```rust
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`](/aztec-nr-api/mainnet/protocol_types/hash/fn.accumulate_sha256.md) over the same two fields.

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