Skip to main content

RecoveryAuthority

Trait RecoveryAuthority 

Source
pub trait RecoveryAuthority: CustodyAuthority {
    // Required methods
    fn permit_recovery(
        &mut self,
        root: &Path,
        chain: &[u8; 32],
        checkpoint: &[u8; 32],
        byte_budget: usize,
    ) -> bool;
    fn recovery_head(
        &mut self,
        root: &Path,
        chain: &[u8; 32],
    ) -> Result<ChainHead, ChainAuthorityError>;
    fn membership(
        &mut self,
        root: &Path,
        head: ChainHead,
        receipt: &SidecarReceipt,
    ) -> Result<MembershipAssertion, ChainAuthorityError>;
}

Required Methods§

Source

fn permit_recovery( &mut self, root: &Path, chain: &[u8; 32], checkpoint: &[u8; 32], byte_budget: usize, ) -> bool

Authorize the exact checkpoint, chain metadata lookup and recovery read. Maintain root protection, chain snapshot and current policy through return.

Source

fn recovery_head( &mut self, root: &Path, chain: &[u8; 32], ) -> Result<ChainHead, ChainAuthorityError>

Source

fn membership( &mut self, root: &Path, head: ChainHead, receipt: &SidecarReceipt, ) -> Result<MembershipAssertion, ChainAuthorityError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§