pub struct AuthorityCheckpoint { /* private fields */ }Expand description
A signed, history-compacting authority baseline for a targeted invitation.
Implementations§
Source§impl AuthorityCheckpoint
impl AuthorityCheckpoint
pub fn issue( domain_id: DomainId, epoch: u64, head: Option<ControlTransition>, capability_ids: Vec<CapabilityId>, active_capability_ids: Vec<CapabilityId>, subject_revocations: Vec<(AuthorId, u64)>, issuer_capability: CapabilityId, subject: AuthorId, signer: &IrohSigner, ) -> Result<Self, CheckpointError>
pub const fn domain_id(&self) -> DomainId
pub const fn epoch(&self) -> u64
pub const fn head(&self) -> Option<&ControlTransition>
pub fn capability_ids(&self) -> &[CapabilityId]
pub fn active_capability_ids(&self) -> &[CapabilityId]
pub fn subject_revocations(&self) -> &[(AuthorId, u64)]
pub const fn issuer(&self) -> AuthorId
pub const fn issuer_capability(&self) -> CapabilityId
pub const fn subject(&self) -> AuthorId
pub fn encode_canonical(&self) -> Result<Vec<u8>, CheckpointError>
pub fn decode_canonical(bytes: &[u8]) -> Result<Self, CheckpointError>
pub fn verify(&self) -> Result<(), CheckpointError>
Trait Implementations§
Source§impl Clone for AuthorityCheckpoint
impl Clone for AuthorityCheckpoint
Source§fn clone(&self) -> AuthorityCheckpoint
fn clone(&self) -> AuthorityCheckpoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthorityCheckpoint
impl Debug for AuthorityCheckpoint
Source§impl PartialEq for AuthorityCheckpoint
impl PartialEq for AuthorityCheckpoint
impl Eq for AuthorityCheckpoint
impl StructuralPartialEq for AuthorityCheckpoint
Auto Trait Implementations§
impl Freeze for AuthorityCheckpoint
impl RefUnwindSafe for AuthorityCheckpoint
impl Send for AuthorityCheckpoint
impl Sync for AuthorityCheckpoint
impl Unpin for AuthorityCheckpoint
impl UnwindSafe for AuthorityCheckpoint
Blanket Implementations§
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