pub struct SignerSuiteRecord {
pub principal: String,
pub suite_id: String,
pub components: Vec<EnrolledComponent>,
pub epoch: u64,
pub role: SignerRole,
pub approver_role: Option<String>,
pub enrollment_policy_id: String,
pub not_after: u64,
pub revoked: bool,
}Expand description
One enrolled signer-suite record — the exact chain a cnf thumbprint,
approver anchor, or service domain resolves to.
Fields§
§principal: StringThe enrolled principal. Distinct logical signer groups in one proof MUST resolve to distinct principals.
suite_id: StringThe exact suite ID the signed plan must declare for this group.
components: Vec<EnrolledComponent>The pinned component keys, in the suite-declared order.
epoch: u64Enrollment epoch — part of the authenticated replay namespace, so a re-enrollment cannot reuse a retired namespace.
role: SignerRoleThe role this record is enrolled for.
approver_role: Option<String>The named approver role this enrollment holds, for role-specific
threshold rules. Meaningful only for SignerRole::Approver; the
name is enrollment data, never taken from the request.
enrollment_policy_id: StringThe enrollment policy this record was issued under (§4.4).
Component-key separation is normative: a key enrolled for the WNS hybrid suite MUST NOT simultaneously be enrolled for a standalone suite, a different hybrid, another protocol or domain separator, or a different logical signer group. An exception requires a separate operator-approved cryptographic analysis and an explicit policy identifier — this field carries it, so an overlap can never be silently inherited from a key’s other role.
not_after: u64Credential/session expiry. A proof whose exp exceeds this denies.
revoked: boolWhether the enrollment has been revoked.
Implementations§
Source§impl SignerSuiteRecord
impl SignerSuiteRecord
Sourcepub fn check_usable(
&self,
now: u64,
proof_exp: u64,
role: SignerRole,
) -> Result<()>
pub fn check_usable( &self, now: u64, proof_exp: u64, role: SignerRole, ) -> Result<()>
Check the record is usable right now for a proof expiring at
proof_exp. Revocation, enrollment expiry, and a proof outliving its
credential are all Rejected, never downgraded.
Sourcepub fn pins_ed25519(&self, key: &VerifyingKey) -> bool
pub fn pins_ed25519(&self, key: &VerifyingKey) -> bool
Whether this record pins the given Ed25519 key as one of its exact component keys.
Sourcepub fn component(&self, alg: i64, kid: &[u8]) -> Option<&EnrolledComponent>
pub fn component(&self, alg: i64, kid: &[u8]) -> Option<&EnrolledComponent>
Resolve the pinned key for an exact (alg, kid) pair.
Sourcepub fn replay_thumbprint(&self) -> [u8; 32]
pub fn replay_thumbprint(&self) -> [u8; 32]
The authenticated-proof replay namespace thumbprint: SHA-256 over the canonical deterministic encoding of the exact suite ID, ordered public component keys, and enrollment epoch, under the authenticated-proof domain separator (§4.5).
Approver groups are deliberately excluded, so every allowed approver subset for the same primary-signed request stays in one namespace.
Trait Implementations§
Source§impl Clone for SignerSuiteRecord
impl Clone for SignerSuiteRecord
Source§fn clone(&self) -> SignerSuiteRecord
fn clone(&self) -> SignerSuiteRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for SignerSuiteRecord
impl RefUnwindSafe for SignerSuiteRecord
impl Send for SignerSuiteRecord
impl Sync for SignerSuiteRecord
impl Unpin for SignerSuiteRecord
impl UnsafeUnpin for SignerSuiteRecord
impl UnwindSafe for SignerSuiteRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more