Skip to main content

is_allocatable

Function is_allocatable 

Source
pub fn is_allocatable(node: NodeId) -> bool
Available on crate feature rustcrypto only.
Expand description

Whether a Node ID may be allocated on a Joint Fabric (§12.2.2).

be greater than 0x0000_0000_0000_0000, but less than 0xFFFF_FFEF_FFFF_FFFF, representing a value within the Operational NodeID range … be checked to ensure its uniqueness in the NodeList attribute.

Uniqueness is the caller’s — it needs the datastore — but the range is not, and a commissioner that allocated outside it would issue a NOC no node could use as an operational identity.