pub struct PocPayload {
pub predecessor: Vec<u8>,
pub successor: Successor,
pub proof: Proof,
}Expand description
PoC Payload - the CBOR content signed by the executor with COSE_Sign1.
The predecessor is stored as raw COSE bytes to:
- Avoid forced deserialization on creation
- Preserve original bytes for signature verification
- Enable efficient forwarding without re-encoding
CAT deserializes the predecessor when validating monotonicity.
Fields§
§predecessor: Vec<u8>Predecessor PCA as raw COSE_Sign1 bytes
successor: SuccessorProposed authority for next hop
proof: ProofExecutor authentication proofs
Implementations§
Source§impl PocPayload
impl PocPayload
Trait Implementations§
Source§impl Clone for PocPayload
impl Clone for PocPayload
Source§fn clone(&self) -> PocPayload
fn clone(&self) -> PocPayload
Returns a duplicate of the value. Read more
1.0.0 · 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 PocPayload
impl Debug for PocPayload
Source§impl<'de> Deserialize<'de> for PocPayload
impl<'de> Deserialize<'de> for PocPayload
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PocPayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PocPayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PocPayload
impl PartialEq for PocPayload
Source§impl Serialize for PocPayload
impl Serialize for PocPayload
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PocPayload
Auto Trait Implementations§
impl Freeze for PocPayload
impl RefUnwindSafe for PocPayload
impl Send for PocPayload
impl Sync for PocPayload
impl Unpin for PocPayload
impl UnwindSafe for PocPayload
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