Struct ic_agent::identity::BasicIdentity
source · pub struct BasicIdentity { /* private fields */ }Expand description
A Basic Identity which sign using an ED25519 key pair.
Implementations§
source§impl BasicIdentity
impl BasicIdentity
sourcepub fn from_pem_file<P: AsRef<Path>>(file_path: P) -> Result<Self, PemError>
pub fn from_pem_file<P: AsRef<Path>>(file_path: P) -> Result<Self, PemError>
Create a BasicIdentity from reading a PEM file at the path.
sourcepub fn from_pem<R: Read>(pem_reader: R) -> Result<Self, PemError>
pub fn from_pem<R: Read>(pem_reader: R) -> Result<Self, PemError>
Create a BasicIdentity from reading a PEM File from a Reader.
sourcepub fn from_key_pair(key_pair: Ed25519KeyPair) -> Self
pub fn from_key_pair(key_pair: Ed25519KeyPair) -> Self
Create a BasicIdentity from a KeyPair from the ring crate.