pub struct AgentKeypair {
pub export: AgentKeypairExport,
}Fields§
§export: AgentKeypairExportImplementations§
Source§impl AgentKeypair
impl AgentKeypair
pub fn generate(handle: impl Into<String>) -> Self
pub fn from_export(export: AgentKeypairExport) -> Self
pub fn identity(&self) -> AgentIdentity
pub fn sign_json<T: Serialize>(&self, value: &T) -> Result<String, CryptoError>
pub fn sign_bytes(&self, bytes: &[u8]) -> Result<String, CryptoError>
pub fn encryption_secret(&self) -> Result<StaticSecret, CryptoError>
Trait Implementations§
Source§impl Clone for AgentKeypair
impl Clone for AgentKeypair
Source§fn clone(&self) -> AgentKeypair
fn clone(&self) -> AgentKeypair
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AgentKeypair
impl RefUnwindSafe for AgentKeypair
impl Send for AgentKeypair
impl Sync for AgentKeypair
impl Unpin for AgentKeypair
impl UnsafeUnpin for AgentKeypair
impl UnwindSafe for AgentKeypair
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