pub enum ContentEncryptionAlgorithm {
Nip04,
Nip44v1Unpadded,
Nip44v1Padded,
Nip44v2,
}
Expand description
Content Encryption Algorithm
Variants§
Nip04
NIP-04 (insecure)
Nip44v1Unpadded
NIP-44 unpadded (produced by Amethyst for a few months around Aug-Oct 2023
Nip44v1Padded
NIP-44 padded (possibly never in use, or a few tests were produced by Gossip around Aug-Oct 2023)
Nip44v2
NIP-44 v2 (latest, not yet audited)
Trait Implementations§
source§impl Clone for ContentEncryptionAlgorithm
impl Clone for ContentEncryptionAlgorithm
source§fn clone(&self) -> ContentEncryptionAlgorithm
fn clone(&self) -> ContentEncryptionAlgorithm
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ContentEncryptionAlgorithm
impl Debug for ContentEncryptionAlgorithm
source§impl Hash for ContentEncryptionAlgorithm
impl Hash for ContentEncryptionAlgorithm
impl Copy for ContentEncryptionAlgorithm
impl Eq for ContentEncryptionAlgorithm
impl StructuralPartialEq for ContentEncryptionAlgorithm
Auto Trait Implementations§
impl Freeze for ContentEncryptionAlgorithm
impl RefUnwindSafe for ContentEncryptionAlgorithm
impl Send for ContentEncryptionAlgorithm
impl Sync for ContentEncryptionAlgorithm
impl Unpin for ContentEncryptionAlgorithm
impl UnwindSafe for ContentEncryptionAlgorithm
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)