Struct switchboard_solana::attestation_program::types::Quote
source · #[repr(packed(1))]pub struct Quote {
pub enclave_signer: Pubkey,
pub mr_enclave: [u8; 32],
pub verification_status: u8,
pub verification_timestamp: i64,
pub valid_until: i64,
pub quote_registry: [u8; 32],
pub registry_key: [u8; 64],
pub secp256k1_signer: [u8; 64],
pub last_ed25519_signer: Pubkey,
pub last_secp256k1_signer: [u8; 64],
pub last_rotate_slot: u64,
pub _ebuf: [u8; 88],
}
Fields§
§enclave_signer: Pubkey
The address of the signer generated within an enclave.
mr_enclave: [u8; 32]
The quotes MRENCLAVE measurement dictating the contents of the secure enclave.
verification_status: u8
The VerificationStatus of the quote.
verification_timestamp: i64
The unix timestamp when the quote was last verified.
valid_until: i64
The unix timestamp when the quotes verification status expires.
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.
secp256k1_signer: [u8; 64]
The address of the secp256k1 signer.
last_ed25519_signer: Pubkey
§last_secp256k1_signer: [u8; 64]
§last_rotate_slot: u64
§_ebuf: [u8; 88]
Reserved.
Implementations§
source§impl Quote
impl Quote
pub fn reset_verification(&mut self) -> Result<()>
pub fn is_verified(&self, clock: &Clock) -> bool
Trait Implementations§
source§impl PartialEq for Quote
impl PartialEq for Quote
impl Copy for Quote
impl StructuralPartialEq for Quote
Auto Trait Implementations§
impl RefUnwindSafe for Quote
impl Send for Quote
impl Sync for Quote
impl Unpin for Quote
impl UnwindSafe for Quote
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