pub struct EndpointIdentitySigner(/* private fields */);Implementations§
Source§impl EndpointIdentitySigner
impl EndpointIdentitySigner
pub fn from_secret(secret: [u8; 32]) -> Result<Self, ContractError>
pub fn public_key(&self) -> [u8; 32]
pub fn fingerprint(&self) -> String
pub fn sign( &self, evidence: &mut EndpointIdentityEvidence, ) -> Result<(), ContractError>
Trait Implementations§
Source§impl Clone for EndpointIdentitySigner
impl Clone for EndpointIdentitySigner
Source§fn clone(&self) -> EndpointIdentitySigner
fn clone(&self) -> EndpointIdentitySigner
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 EndpointIdentitySigner
impl RefUnwindSafe for EndpointIdentitySigner
impl Send for EndpointIdentitySigner
impl Sync for EndpointIdentitySigner
impl Unpin for EndpointIdentitySigner
impl UnsafeUnpin for EndpointIdentitySigner
impl UnwindSafe for EndpointIdentitySigner
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