pub struct HeldIdentityRef<'a> { /* private fields */ }Implementations§
Source§impl HeldIdentityRef<'_>
impl HeldIdentityRef<'_>
pub fn decrypt_in_place<'t>( &self, ciphertext_token: &'t mut [u8], ) -> Result<&'t [u8], DecryptError>
pub fn decrypt_in_place_with_ratchets<'t>( &self, ratchet_secrets: &[X25519SecretKey], fallback: IdentityKeyFallback, ciphertext_token: &'t mut [u8], ) -> Result<OpenedToken<'t>, DecryptError>
pub fn decrypt( &self, ciphertext_token: &[u8], out: &mut [u8], ) -> Result<usize, DecryptError>
pub fn signing_secret_clone(&self) -> Ed25519SecretKey
pub fn encryption_secret_clone(&self) -> X25519SecretKey
Trait Implementations§
Source§impl IdentitySigner for HeldIdentityRef<'_>
impl IdentitySigner for HeldIdentityRef<'_>
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<'a> Freeze for HeldIdentityRef<'a>
impl<'a> RefUnwindSafe for HeldIdentityRef<'a>
impl<'a> Send for HeldIdentityRef<'a>
impl<'a> Sync for HeldIdentityRef<'a>
impl<'a> Unpin for HeldIdentityRef<'a>
impl<'a> UnsafeUnpin for HeldIdentityRef<'a>
impl<'a> UnwindSafe for HeldIdentityRef<'a>
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