pub struct GovernedUpstreamCallChainProof {
pub signer: PublicKey,
pub subject: PublicKey,
pub chain_id: String,
pub parent_request_id: String,
pub parent_receipt_id: Option<String>,
pub origin_subject: String,
pub delegator_subject: String,
pub issued_at: u64,
pub expires_at: u64,
pub signature: Signature,
}Expand description
Signed upstream proof Chio can validate and promote to verified provenance.
Fields§
§signer: PublicKey§subject: PublicKey§chain_id: String§parent_request_id: String§parent_receipt_id: Option<String>§origin_subject: String§delegator_subject: String§issued_at: u64§expires_at: u64§signature: SignatureImplementations§
Source§impl GovernedUpstreamCallChainProof
impl GovernedUpstreamCallChainProof
pub fn body(&self) -> GovernedUpstreamCallChainProofBody
pub fn sign( body: GovernedUpstreamCallChainProofBody, keypair: &Keypair, ) -> Result<GovernedUpstreamCallChainProof, Error>
pub fn verify_signature(&self) -> Result<bool, Error>
pub fn is_valid_at(&self, now: u64) -> bool
pub fn validate_time(&self, now: u64) -> Result<(), Error>
pub fn matches_context(&self, context: &GovernedCallChainContext) -> bool
Trait Implementations§
Source§impl Clone for GovernedUpstreamCallChainProof
impl Clone for GovernedUpstreamCallChainProof
Source§fn clone(&self) -> GovernedUpstreamCallChainProof
fn clone(&self) -> GovernedUpstreamCallChainProof
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<'de> Deserialize<'de> for GovernedUpstreamCallChainProof
impl<'de> Deserialize<'de> for GovernedUpstreamCallChainProof
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GovernedUpstreamCallChainProof, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GovernedUpstreamCallChainProof, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GovernedUpstreamCallChainProof
impl PartialEq for GovernedUpstreamCallChainProof
Source§fn eq(&self, other: &GovernedUpstreamCallChainProof) -> bool
fn eq(&self, other: &GovernedUpstreamCallChainProof) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GovernedUpstreamCallChainProof
impl Serialize for GovernedUpstreamCallChainProof
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 Eq for GovernedUpstreamCallChainProof
impl StructuralPartialEq for GovernedUpstreamCallChainProof
Auto Trait Implementations§
impl Freeze for GovernedUpstreamCallChainProof
impl RefUnwindSafe for GovernedUpstreamCallChainProof
impl Send for GovernedUpstreamCallChainProof
impl Sync for GovernedUpstreamCallChainProof
impl Unpin for GovernedUpstreamCallChainProof
impl UnsafeUnpin for GovernedUpstreamCallChainProof
impl UnwindSafe for GovernedUpstreamCallChainProof
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