pub struct SecretKey<F: PrimeField>(pub F);
Tuple Fields§
§0: F
Implementations§
Trait Implementations§
source§impl<F: PrimeField> AsRef<F> for SecretKey<F>
impl<F: PrimeField> AsRef<F> for SecretKey<F>
source§impl<F: PrimeField> CanonicalDeserialize for SecretKey<F>
impl<F: PrimeField> CanonicalDeserialize for SecretKey<F>
source§fn deserialize_with_mode<R: Read>(
reader: R,
compress: Compress,
validate: Validate
) -> Result<Self, SerializationError>
fn deserialize_with_mode<R: Read>( reader: R, compress: Compress, validate: Validate ) -> Result<Self, SerializationError>
The general deserialize method that takes in customization flags.
fn deserialize_compressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_compressed_unchecked<R>(
reader: R
) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed_unchecked<R>(
reader: R
) -> Result<Self, SerializationError>where
R: Read,
source§impl<F: PrimeField> CanonicalSerialize for SecretKey<F>
impl<F: PrimeField> CanonicalSerialize for SecretKey<F>
source§fn serialize_with_mode<W: Write>(
&self,
writer: W,
compress: Compress
) -> Result<(), SerializationError>
fn serialize_with_mode<W: Write>( &self, writer: W, compress: Compress ) -> Result<(), SerializationError>
The general serialize method that takes in customization flags.
fn serialized_size(&self, compress: Compress) -> usize
fn serialize_compressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn compressed_size(&self) -> usize
fn serialize_uncompressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn uncompressed_size(&self) -> usize
source§impl<'de, F: PrimeField> Deserialize<'de> for SecretKey<F>
impl<'de, F: PrimeField> Deserialize<'de> for SecretKey<F>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<F: PrimeField> Drop for SecretKey<F>
impl<F: PrimeField> Drop for SecretKey<F>
source§impl<F: PartialEq + PrimeField> PartialEq for SecretKey<F>
impl<F: PartialEq + PrimeField> PartialEq for SecretKey<F>
source§impl<F: PrimeField> Serialize for SecretKey<F>
impl<F: PrimeField> Serialize for SecretKey<F>
source§impl<F: PrimeField> Valid for SecretKey<F>
impl<F: PrimeField> Valid for SecretKey<F>
fn check(&self) -> Result<(), SerializationError>
fn batch_check<'a>(
batch: impl Iterator<Item = &'a Self> + Send
) -> Result<(), SerializationError>where
Self: 'a,
impl<F: Eq + PrimeField> Eq for SecretKey<F>
impl<F: PrimeField> StructuralPartialEq for SecretKey<F>
Auto Trait Implementations§
impl<F> Freeze for SecretKey<F>where
F: Freeze,
impl<F> RefUnwindSafe for SecretKey<F>where
F: RefUnwindSafe,
impl<F> Send for SecretKey<F>
impl<F> Sync for SecretKey<F>
impl<F> Unpin for SecretKey<F>where
F: Unpin,
impl<F> UnwindSafe for SecretKey<F>where
F: UnwindSafe,
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> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
impl<T> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
fn hash<H>(&self) -> GenericArray<u8, <H as OutputSizeUser>::OutputSize>where
H: Digest,
fn hash_uncompressed<H>(
&self
) -> GenericArray<u8, <H as OutputSizeUser>::OutputSize>where
H: Digest,
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more