pub struct DelegationToken {
pub claims: DelegationClaims,
pub delegator_signature: String,
pub binding_signature: String,
pub delegation_public_key: String,
pub delegation_private_key: Option<String>,
}Expand description
A delegation token with dual signatures.
Fields§
§claims: DelegationClaims§delegator_signature: StringHex-encoded Ed25519 signature by the delegating human’s key.
binding_signature: StringHex-encoded Ed25519 signature by the stable delegation key.
delegation_public_key: StringHex-encoded public key of the delegation keypair. Redundant with the
value recorded in project.yaml under ai_delegations; kept as an
aid for debugging and for error messages pointing at a mismatch.
delegation_private_key: Option<String>Hex-encoded 32-byte Ed25519 seed for the delegation keypair. Present
only on tokens with crypt scope; lets the AI re-derive the
delegation keypair to unwrap zone keys (ADR-041 §2). Never persisted
on the AI’s disk; it travels in the token string and lives in the
JOY_SESSION env var while a session is active.
Trait Implementations§
Source§impl Debug for DelegationToken
impl Debug for DelegationToken
Source§impl<'de> Deserialize<'de> for DelegationToken
impl<'de> Deserialize<'de> for DelegationToken
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DelegationToken
impl RefUnwindSafe for DelegationToken
impl Send for DelegationToken
impl Sync for DelegationToken
impl Unpin for DelegationToken
impl UnsafeUnpin for DelegationToken
impl UnwindSafe for DelegationToken
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
Mutably borrows from an owned value. Read more