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§
Sourcefn permit_recovery(
&mut self,
root: &Path,
chain: &[u8; 32],
checkpoint: &[u8; 32],
byte_budget: usize,
) -> bool
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.
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>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".