Struct ic_agent::identity::BasicIdentity [−][src]
pub struct BasicIdentity { /* fields omitted */ }
Expand description
A Basic Identity which sign using an ED25519 key pair.
Implementations
impl BasicIdentity
[src]
impl BasicIdentity
[src]pub fn from_pem_file<P: AsRef<Path>>(file_path: P) -> Result<Self, PemError>
[src]
pub fn from_pem_file<P: AsRef<Path>>(file_path: P) -> Result<Self, PemError>
[src]Create a BasicIdentity from reading a PEM file at the path.
pub fn from_pem<R: Read>(pem_reader: R) -> Result<Self, PemError>
[src]
pub fn from_pem<R: Read>(pem_reader: R) -> Result<Self, PemError>
[src]Create a BasicIdentity from reading a PEM File from a Reader.
pub fn from_key_pair(key_pair: Ed25519KeyPair) -> Self
[src]
pub fn from_key_pair(key_pair: Ed25519KeyPair) -> Self
[src]Create a BasicIdentity from a KeyPair from the ring crate.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BasicIdentity
impl Send for BasicIdentity
impl Sync for BasicIdentity
impl Unpin for BasicIdentity
impl UnwindSafe for BasicIdentity
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,