pub trait LocalRecoveryPolicy: LocalHeadPolicy + CustodyAuthority {
// Required methods
fn permit_recovery_read(
&mut self,
root: &Path,
chain: &[u8; 32],
checkpoint: &[u8; 32],
byte_budget: usize,
) -> bool;
fn verify_recovery_membership(
&mut self,
root: &Path,
chain: &[u8; 32],
head: ChainHead,
receipt: &SidecarReceipt,
) -> Result<MembershipAssertion, ChainAuthorityError>;
}Expand description
Current exact recovery permission and authenticated membership evidence.
Missing ancestry/exclusion evidence must return Unknown. Implementations
must bind their proof to the root, chain, receipt and supplied head.
Required Methods§
fn permit_recovery_read( &mut self, root: &Path, chain: &[u8; 32], checkpoint: &[u8; 32], byte_budget: usize, ) -> bool
fn verify_recovery_membership( &mut self, root: &Path, chain: &[u8; 32], 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".