Skip to main content

libid_identity/
lib.rs

1//! The libid identity keys off chain: handle normalization, the id rules
2//! and, with the `node` feature, the nodes a binding is stored under.
3//!
4//! `scripts/regen-identity-handles.py` generates `platforms` and `vectors`
5//! from the pinned libID-circuits release's `platforms.json` and
6//! `handles.json`. The README covers the rules and examples.
7
8#![deny(warnings)]
9#![deny(missing_docs)]
10
11pub mod handle;
12pub mod id;
13#[cfg(feature = "node")]
14pub mod node;
15
16#[rustfmt::skip]
17pub mod platforms;
18#[cfg(any(test, feature = "test-helpers"))]
19#[rustfmt::skip]
20pub mod vectors;
21
22/// The README's examples, run as doctests; they need the `node` feature.
23#[cfg(all(doctest, feature = "node"))]
24#[doc = include_str!("../README.md")]
25struct ReadmeDoctests;
26
27pub use handle::{
28    normalize,
29    rules_for,
30    Rules,
31};
32pub use id::{
33    check_id,
34    IdRules,
35};
36pub use platforms::{
37    HandleError,
38    IdError,
39};