pub struct DomainDescriptor { /* private fields */ }Expand description
A signed immutable domain genesis descriptor.
Implementations§
Source§impl DomainDescriptor
impl DomainDescriptor
pub fn issue( domain_id: DomainId, mode: ConsistencyMode, owner: &IrohSigner, nonce: [u8; 32], ) -> Result<Self, AuthorityError>
pub const fn domain_id(&self) -> DomainId
pub const fn mode(&self) -> ConsistencyMode
pub const fn owner(&self) -> AuthorId
pub fn verify(&self) -> Result<(), AuthorityError>
pub fn encode_canonical(&self) -> Result<Vec<u8>, AuthorityError>
pub fn decode_canonical(bytes: &[u8]) -> Result<Self, AuthorityError>
Trait Implementations§
Source§impl Clone for DomainDescriptor
impl Clone for DomainDescriptor
Source§fn clone(&self) -> DomainDescriptor
fn clone(&self) -> DomainDescriptor
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 DomainDescriptor
impl Debug for DomainDescriptor
Source§impl PartialEq for DomainDescriptor
impl PartialEq for DomainDescriptor
impl Eq for DomainDescriptor
impl StructuralPartialEq for DomainDescriptor
Auto Trait Implementations§
impl Freeze for DomainDescriptor
impl RefUnwindSafe for DomainDescriptor
impl Send for DomainDescriptor
impl Sync for DomainDescriptor
impl Unpin for DomainDescriptor
impl UnwindSafe for DomainDescriptor
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