Skip to main content

confium_attributes/
lib.rs

1//! Attribute-based threshold party selection.
2//!
3//! Allows deployments to express predicates like:
4//! - "at least K signers have attribute X"
5//! - "at least K distinct values of attribute X"
6//! - "no signer has attribute Y"
7//! - "all signers have attribute Z"
8//!
9//! Predicates compose via boolean AND/OR/NOT.
10//!
11//! See `TODO.roadmap/38-attribute-based-threshold.md` for the full spec.
12
13#![forbid(unsafe_code)]
14#![allow(missing_docs)] // TODO: document before 1.0
15#![recursion_limit = "256"]
16
17mod ast;
18mod dsl;
19mod evaluate;
20
21pub use ast::*;
22pub use dsl::*;
23pub use evaluate::*;