pic_continuity/authority/mod.rs
1/*
2 * Copyright Nitro Agility S.r.l.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * https://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17//! Authority: logical form, canonical indexed form, attenuation.
18//!
19//! - [`logical`] — the application-facing **Logical Context of Authority**:
20//! optional `identity_context` and `execution { invariants, contract }`;
21//! - [`indexed`] — the deterministic canonicalization into the
22//! **Indexed Authority Map**, which removal bitmaps and additions address
23//! by section-local numeric index;
24//! - [`bitmap`] — canonical LSB-first removal bitmaps;
25//! - [`attenuation`] — materialization of accepted attenuations and the
26//! non-expansion order.
27
28pub mod attenuation;
29pub mod bitmap;
30pub mod indexed;
31pub mod logical;
32
33pub use attenuation::{AttenuationOrder, Attenuations, ReferenceProfile, materialize};
34pub use bitmap::RemoveBitmap;
35pub use indexed::{IndexedAuthorityMap, InvariantTuple, KvTuple, TupleValue};
36pub use logical::{AuthorityValue, Invariant, LogicalAuthority, LogicalExecution};