Skip to main content

pointer_leaf_hash

Function pointer_leaf_hash 

Source
pub fn pointer_leaf_hash(address: &XorName) -> [u8; 32]
Expand description

The bytes_hash a pointer at address is committed under (ADR-0016).

A chunk is committed as (key, key): its address is the hash of its bytes. A pointer’s address is not, and its bytes change with every update, so it is committed under a value derived from the address alone. The root then moves only when a pointer is added or dropped, never on an update, and an auditor tells the two kinds apart from the leaf itself: bytes_hash == key for a chunk, bytes_hash == pointer_leaf_hash(key) for a pointer. Derive-key keeps them apart — a chunk leaf cannot equal a pointer leaf without a BLAKE3 preimage across modes.

Possession of a pointer is proved in round 2 by serving the whole signed record, which the auditor verifies; nothing about the bytes is bound here.