Struct switchboard_solana::attestation_program::types::BorshQuote
source · pub struct BorshQuote {
pub enclave_signer: Pubkey,
pub verifier: Pubkey,
pub mr_enclave: [u8; 32],
pub quote_registry: [u8; 32],
pub registry_key: [u8; 64],
pub verification_status: u8,
pub request_timestamp: i64,
pub verification_timestamp: i64,
pub valid_until: i64,
pub _ebuf: [u8; 32],
}
Fields§
§enclave_signer: Pubkey
The address of the signer generated within an enclave.
verifier: Pubkey
The VerifierAccountData
which completed the verification.
mr_enclave: [u8; 32]
The quotes MRENCLAVE measurement dictating the contents of the secure enclave.
quote_registry: [u8; 32]
The off-chain registry where the verifiers quote can be located.
registry_key: [u8; 64]
Key to lookup the buffer data on IPFS or an alternative decentralized storage solution.
verification_status: u8
§request_timestamp: i64
The unix timestamp when verification was requested.
verification_timestamp: i64
The unix timestamp when the quote was last verified.
valid_until: i64
The unix timestamp when the quotes verification status expires.
_ebuf: [u8; 32]
Trait Implementations§
source§impl BorshDeserialize for BorshQuotewhere
Pubkey: BorshDeserialize,
[u8; 32]: BorshDeserialize,
[u8; 64]: BorshDeserialize,
u8: BorshDeserialize,
i64: BorshDeserialize,
impl BorshDeserialize for BorshQuotewhere
Pubkey: BorshDeserialize,
[u8; 32]: BorshDeserialize,
[u8; 64]: BorshDeserialize,
u8: BorshDeserialize,
i64: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl BorshSerialize for BorshQuotewhere
Pubkey: BorshSerialize,
[u8; 32]: BorshSerialize,
[u8; 64]: BorshSerialize,
u8: BorshSerialize,
i64: BorshSerialize,
impl BorshSerialize for BorshQuotewhere
Pubkey: BorshSerialize,
[u8; 32]: BorshSerialize,
[u8; 64]: BorshSerialize,
u8: BorshSerialize,
i64: BorshSerialize,
source§impl Clone for BorshQuote
impl Clone for BorshQuote
source§fn clone(&self) -> BorshQuote
fn clone(&self) -> BorshQuote
Returns a copy 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 BorshQuote
impl Debug for BorshQuote
source§impl Default for BorshQuote
impl Default for BorshQuote
source§impl PartialEq for BorshQuote
impl PartialEq for BorshQuote
source§fn eq(&self, other: &BorshQuote) -> bool
fn eq(&self, other: &BorshQuote) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BorshQuote
impl StructuralPartialEq for BorshQuote
Auto Trait Implementations§
impl RefUnwindSafe for BorshQuote
impl Send for BorshQuote
impl Sync for BorshQuote
impl Unpin for BorshQuote
impl UnwindSafe for BorshQuote
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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