Skip to main content

Module node_id

Module node_id 

Source
Expand description

Content-addressed node identity.

Every node in the IR graph is identified by a NodeId โ€“ a 128-bit value derived from a BLAKE3 hash. Two construction strategies are available:

  • Explicit โ€“ hash a user-provided string key. Stable across rebuilds as long as the key string does not change.
  • Derived โ€“ hash a parent ID plus a child-index path. Gives every node in a subtree a deterministic identity based on its structural position.

Structsยง

NodeId
A content-addressed 128-bit node identity.