Skip to main content

aidens_delegation_kit/
lib.rs

1//! Delegation status surface.
2//!
3//! Phase 02 removed the local duplicate attestation and settlement artifact
4//! types from `aidens-contracts`. The prior helper policy in this crate was
5//! coupled to those local shadow fields, so it is intentionally not preserved
6//! as a compatibility adapter.
7
8pub mod federation;
9
10use thiserror::Error;
11
12#[derive(Debug, Error, PartialEq, Eq)]
13pub enum DelegationError {
14    #[error("delegation helper semantics are quarantined pending canonical owner wiring")]
15    CanonicalOwnerRequired,
16}
17
18#[derive(Debug, Clone, PartialEq, Eq)]
19pub struct DelegationKitStatus {
20    pub enabled: bool,
21    pub note: String,
22}
23
24impl Default for DelegationKitStatus {
25    fn default() -> Self {
26        Self {
27            enabled: false,
28            note: "delegation helpers are quarantined after canonical attestation and settlement ownership collapse".into(),
29        }
30    }
31}