pub struct ProtectedEd25519KeyPair(/* private fields */);
Implementations§
Source§impl ProtectedEd25519KeyPair
impl ProtectedEd25519KeyPair
pub fn new(keypair: Keypair) -> ProtectedEd25519KeyPair
pub fn from_bytes(input_bytes: &[u8]) -> WasmiumResult<ProtectedEd25519KeyPair>
pub fn try_sign(&self, message: &[u8]) -> WasmiumResult<Signature>
pub fn zero_init(public_key_array: [u8; 32]) -> WasmiumResult<Self>
pub fn public_key(&self) -> [u8; 32]
Trait Implementations§
Source§impl Debug for ProtectedEd25519KeyPair
impl Debug for ProtectedEd25519KeyPair
Auto Trait Implementations§
impl Freeze for ProtectedEd25519KeyPair
impl RefUnwindSafe for ProtectedEd25519KeyPair
impl Send for ProtectedEd25519KeyPair
impl Sync for ProtectedEd25519KeyPair
impl Unpin for ProtectedEd25519KeyPair
impl UnwindSafe for ProtectedEd25519KeyPair
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