pub struct IrohSigner { /* private fields */ }Expand description
The iroh endpoint signing identity used by the database protocol.
Implementations§
Source§impl IrohSigner
impl IrohSigner
Sourcepub fn generate() -> IrohSigner
pub fn generate() -> IrohSigner
Generates a new iroh endpoint identity.
Sourcepub fn from_secret_bytes(bytes: [u8; 32]) -> IrohSigner
pub fn from_secret_bytes(bytes: [u8; 32]) -> IrohSigner
Imports deterministic endpoint secret bytes from a trusted key provider.
Sourcepub const fn new(secret_key: SecretKey) -> IrohSigner
pub const fn new(secret_key: SecretKey) -> IrohSigner
Wraps the same iroh secret key used by an endpoint.
Returns the authenticated iroh endpoint identity.
Sourcepub fn sign(&self, canonical_commit_bytes: &[u8]) -> [u8; 64]
pub fn sign(&self, canonical_commit_bytes: &[u8]) -> [u8; 64]
Signs canonical commit bytes under the commit-specific context.
Sourcepub fn sign_snapshot(&self, canonical_snapshot_bytes: &[u8]) -> [u8; 64]
pub fn sign_snapshot(&self, canonical_snapshot_bytes: &[u8]) -> [u8; 64]
Signs canonical snapshot bytes under a snapshot-specific context.
Sourcepub fn sign_backup_catalog(&self, canonical_catalog_bytes: &[u8]) -> [u8; 64]
pub fn sign_backup_catalog(&self, canonical_catalog_bytes: &[u8]) -> [u8; 64]
Signs a canonical backup catalog under a backup-specific context.
Sourcepub fn sign_gossip(&self, canonical_hint_bytes: &[u8]) -> [u8; 64]
pub fn sign_gossip(&self, canonical_hint_bytes: &[u8]) -> [u8; 64]
Signs a bounded gossip hint under a gossip-specific protocol context.
Sourcepub fn sign_capability(&self, canonical_authority_bytes: &[u8]) -> [u8; 64]
pub fn sign_capability(&self, canonical_authority_bytes: &[u8]) -> [u8; 64]
Signs canonical domain-authority bytes under a capability-specific context.
Sourcepub fn sign_domain_descriptor(
&self,
canonical_descriptor_bytes: &[u8],
) -> [u8; 64]
pub fn sign_domain_descriptor( &self, canonical_descriptor_bytes: &[u8], ) -> [u8; 64]
Signs canonical genesis bytes under a descriptor-specific context.
Sourcepub fn sign_invitation(&self, canonical_invitation_bytes: &[u8]) -> [u8; 64]
pub fn sign_invitation(&self, canonical_invitation_bytes: &[u8]) -> [u8; 64]
Signs a targeted invitation under an invitation-specific context.
Signs a history-compacting authority checkpoint.
Sourcepub fn sign_control(&self, canonical_control_bytes: &[u8]) -> [u8; 64]
pub fn sign_control(&self, canonical_control_bytes: &[u8]) -> [u8; 64]
Signs a domain control transition under a control-specific context.
Trait Implementations§
Source§impl Clone for IrohSigner
impl Clone for IrohSigner
Source§fn clone(&self) -> IrohSigner
fn clone(&self) -> IrohSigner
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for IrohSigner
impl RefUnwindSafe for IrohSigner
impl Send for IrohSigner
impl Sync for IrohSigner
impl Unpin for IrohSigner
impl UnwindSafe for IrohSigner
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more