pub struct InMemoryNodeIdentity { /* private fields */ }Implementations§
Source§impl InMemoryNodeIdentity
impl InMemoryNodeIdentity
pub fn from_secret_key_bytes(bytes: &[u8; 64]) -> InMemoryNodeIdentity
pub fn decrypt_in_place<'t>( &self, ciphertext_token: &'t mut [u8], ) -> Result<&'t [u8], DecryptError>
pub fn decrypt( &self, ciphertext_token: &[u8], out: &mut [u8], ) -> Result<usize, DecryptError>
pub fn into_parts(self) -> IdentityParts
Trait Implementations§
Source§impl IdentitySigner for InMemoryNodeIdentity
impl IdentitySigner for InMemoryNodeIdentity
fn encryption_public_key(&self) -> IdentityEncryptionPublicKey
fn signing_public_key(&self) -> IdentitySigningPublicKey
fn identity_hash(&self) -> IdentityHash
fn sign(&self, message: &[u8]) -> Ed25519Signature
Source§fn public_key_bytes(&self) -> [u8; 64]
fn public_key_bytes(&self) -> [u8; 64]
The wire form RNS calls
Identity.get_public_key(): encryption key ‖ signing key.Auto Trait Implementations§
impl Freeze for InMemoryNodeIdentity
impl RefUnwindSafe for InMemoryNodeIdentity
impl Send for InMemoryNodeIdentity
impl Sync for InMemoryNodeIdentity
impl Unpin for InMemoryNodeIdentity
impl UnsafeUnpin for InMemoryNodeIdentity
impl UnwindSafe for InMemoryNodeIdentity
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