Enum snarkvm_dpc::record::decryption_key::DecryptionKey
source · [−]pub enum DecryptionKey<N: Network> {
AccountViewKey(ViewKey<N>),
RecordViewKey(N::RecordViewKey),
}
Variants
AccountViewKey(ViewKey<N>)
RecordViewKey(N::RecordViewKey)
Implementations
sourceimpl<N: Network> DecryptionKey<N>
impl<N: Network> DecryptionKey<N>
pub fn from_record_view_key(record_view_key: &N::RecordViewKey) -> Self
Trait Implementations
sourceimpl<N: Network> Clone for DecryptionKey<N> where
N: Network,
impl<N: Network> Clone for DecryptionKey<N> where
N: Network,
sourceimpl<N: Network> Debug for DecryptionKey<N>
impl<N: Network> Debug for DecryptionKey<N>
sourceimpl<N: Network> Display for DecryptionKey<N>
impl<N: Network> Display for DecryptionKey<N>
sourceimpl<N: Network> From<&'_ ViewKey<N>> for DecryptionKey<N>
impl<N: Network> From<&'_ ViewKey<N>> for DecryptionKey<N>
sourceimpl<N: Network> From<ViewKey<N>> for DecryptionKey<N>
impl<N: Network> From<ViewKey<N>> for DecryptionKey<N>
sourceimpl<N: Network> PartialEq<DecryptionKey<N>> for DecryptionKey<N> where
N: Network,
impl<N: Network> PartialEq<DecryptionKey<N>> for DecryptionKey<N> where
N: Network,
impl<N: Network> Eq for DecryptionKey<N> where
N: Network,
Auto Trait Implementations
impl<N> RefUnwindSafe for DecryptionKey<N> where
<N as Network>::ProgramScalarField: RefUnwindSafe,
<N as Network>::RecordViewKey: RefUnwindSafe,
impl<N> Send for DecryptionKey<N>
impl<N> Sync for DecryptionKey<N>
impl<N> Unpin for DecryptionKey<N> where
<N as Network>::ProgramScalarField: Unpin,
<N as Network>::RecordViewKey: Unpin,
impl<N> UnwindSafe for DecryptionKey<N> where
<N as Network>::ProgramScalarField: UnwindSafe,
<N as Network>::RecordViewKey: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more