Skip to main content

Crate libid_identity

Crate libid_identity 

Source
Expand description

The libid identity keys off chain: handle normalization, the id rules and, with the node feature, the nodes a binding is stored under.

scripts/regen-identity-handles.py generates platforms and vectors from the pinned libID-circuits release’s platforms.json and handles.json. The README covers the rules and examples.

Re-exports§

pub use handle::normalize;
pub use handle::rules_for;
pub use handle::Rules;
pub use id::check_id;
pub use id::IdRules;
pub use platforms::HandleError;
pub use platforms::IdError;

Modules§

handle
Turns a typed handle into the form the identity circuits hash into a node.
id
What a platform’s user id must be before it is hashed into a node: one JSON token as sent, digits for a number, otherwise a string’s bytes.
platforms
The platform table: each platform’s key, node tags and buffers, and the refusals the handle and id checks share.