pub struct ProofBundle {
pub agent_id: String,
pub agent_pub_key: HybridPublicKey,
pub delegations: Vec<DelegationCert>,
pub challenge: Vec<u8>,
pub challenge_at: i64,
pub challenge_sig: HybridSignature,
pub session_context: Vec<u8>,
pub stream_id: Vec<u8>,
pub stream_seq: i64,
}Expand description
Proof an agent presents to a verifier.
v1.1 optional stream binding: when stream_id and stream_seq are set,
the bundle is “stream-bound” — it belongs to an ordered sequence of
interactions sharing a stream_id. Both are signed into the challenge bytes
(SPEC §6.4.2) so replay, reorder, or omission within the stream invalidate
the signature.
Fields§
§agent_id: String§agent_pub_key: HybridPublicKey§delegations: Vec<DelegationCert>§challenge: Vec<u8>§challenge_at: i64§challenge_sig: HybridSignature§session_context: Vec<u8>§stream_id: Vec<u8>§stream_seq: i64Trait Implementations§
Source§impl Clone for ProofBundle
impl Clone for ProofBundle
Source§fn clone(&self) -> ProofBundle
fn clone(&self) -> ProofBundle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProofBundle
impl Debug for ProofBundle
Source§impl<'de> Deserialize<'de> for ProofBundle
impl<'de> Deserialize<'de> for ProofBundle
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 ProofBundle
impl RefUnwindSafe for ProofBundle
impl Send for ProofBundle
impl Sync for ProofBundle
impl Unpin for ProofBundle
impl UnsafeUnpin for ProofBundle
impl UnwindSafe for ProofBundle
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