pub struct DaemonIdentityToSign<'a> {
pub schema_version: &'a str,
pub daemon_id: &'a str,
pub public_key: &'a str,
pub signed_at: &'a str,
}Expand description
Field set canonically serialised for the daemon-identity Ed25519
signature. Mirrors the discipline established by
crate::governance::rules_store::canonical_bytes_for_signing:
the signed property is what identity the daemon is presenting —
schema version, daemon id, public key, and the handshake timestamp.
The signature itself is excluded from the signed bytes.
Fields§
§schema_version: &'a strSubstrate schema version the daemon is running. Stamped at
runtime from
crate::storage::migrations::current_schema_version() (the
SSOT — see also CURRENT_SCHEMA_VERSION in
src/storage/migrations.rs). Allows the TOFU-pinning client
to detect a schema rollback / rollforward separately from a
key rotation.
daemon_id: &'a strResolved daemon agent_id — the same identifier used for V-4
signed-events row attribution and outbound link signing.
public_key: &'a strURL-safe, no-padding base64 of the 32-byte Ed25519 verifying
key. Same format AgentKeypair::public_base64 emits.
signed_at: &'a strRFC3339 timestamp captured at handshake time. Pinned into the signed bytes so a client can detect signature replay across time-disjoint handshake windows.
Trait Implementations§
Source§impl<'a> Clone for DaemonIdentityToSign<'a>
impl<'a> Clone for DaemonIdentityToSign<'a>
Source§fn clone(&self) -> DaemonIdentityToSign<'a>
fn clone(&self) -> DaemonIdentityToSign<'a>
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<'a> Freeze for DaemonIdentityToSign<'a>
impl<'a> RefUnwindSafe for DaemonIdentityToSign<'a>
impl<'a> Send for DaemonIdentityToSign<'a>
impl<'a> Sync for DaemonIdentityToSign<'a>
impl<'a> Unpin for DaemonIdentityToSign<'a>
impl<'a> UnsafeUnpin for DaemonIdentityToSign<'a>
impl<'a> UnwindSafe for DaemonIdentityToSign<'a>
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> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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