oyster::scallop

Trait ScallopAuthStore

Source
pub trait ScallopAuthStore {
    // Required methods
    fn contains(&self, key: &[u8; 32]) -> bool;
    fn get(&self, key: &[u8; 32]) -> Option<&([u8; 48], [u8; 48], [u8; 48])>;
    fn set(&mut self, key: [u8; 32], pcrs: ([u8; 48], [u8; 48], [u8; 48]));
    fn verify(
        &mut self,
        attestation: &[u8],
        key: &[u8; 32],
    ) -> Option<([u8; 48], [u8; 48], [u8; 48])>;
}

Required Methods§

Source

fn contains(&self, key: &[u8; 32]) -> bool

Source

fn get(&self, key: &[u8; 32]) -> Option<&([u8; 48], [u8; 48], [u8; 48])>

Source

fn set(&mut self, key: [u8; 32], pcrs: ([u8; 48], [u8; 48], [u8; 48]))

Source

fn verify( &mut self, attestation: &[u8], key: &[u8; 32], ) -> Option<([u8; 48], [u8; 48], [u8; 48])>

Implementations on Foreign Types§

Source§

impl<T: ScallopAuthStore> ScallopAuthStore for &mut T

Source§

fn contains(&self, key: &[u8; 32]) -> bool

Source§

fn get(&self, key: &[u8; 32]) -> Option<&([u8; 48], [u8; 48], [u8; 48])>

Source§

fn set(&mut self, key: [u8; 32], pcrs: ([u8; 48], [u8; 48], [u8; 48]))

Source§

fn verify( &mut self, attestation: &[u8], key: &[u8; 32], ) -> Option<([u8; 48], [u8; 48], [u8; 48])>

Implementors§