pub struct SecretKeyVT<E: EngineBLS>(pub E::Scalar);
Expand description
Secret signing key lacking the side channel protections from key splitting. Avoid using directly in production.
Tuple Fields§
§0: E::Scalar
Implementations§
Source§impl<E: EngineBLS> SecretKeyVT<E>
impl<E: EngineBLS> SecretKeyVT<E>
Source§impl<E: EngineBLS> SecretKeyVT<E>
impl<E: EngineBLS> SecretKeyVT<E>
Sourcepub fn sign(&self, message: &Message) -> Signature<E>
pub fn sign(&self, message: &Message) -> Signature<E>
Sign without side channel protections from key mutation.
Sourcepub fn into_split_dirty(&self) -> SecretKey<E>
pub fn into_split_dirty(&self) -> SecretKey<E>
Convert into a SecretKey
that supports side channel protections,
but does not itself resplit the key.
Sourcepub fn into_split<R: Rng>(&self, rng: R) -> SecretKey<E>
pub fn into_split<R: Rng>(&self, rng: R) -> SecretKey<E>
Convert into a SecretKey
applying side channel protections.
Sourcepub fn into_public(&self) -> PublicKey<E>
pub fn into_public(&self) -> PublicKey<E>
Derive our public key from our secret key
Trait Implementations§
Source§impl<E: EngineBLS> CanonicalDeserialize for SecretKeyVT<E>
impl<E: EngineBLS> CanonicalDeserialize for SecretKeyVT<E>
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<E: EngineBLS> CanonicalSerialize for SecretKeyVT<E>
impl<E: EngineBLS> CanonicalSerialize for SecretKeyVT<E>
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<E: EngineBLS, H: DynDigest + Default + Clone> ChaumPedersenSigner<E, H> for SecretKeyVT<E>
impl<E: EngineBLS, H: DynDigest + Default + Clone> ChaumPedersenSigner<E, H> for SecretKeyVT<E>
Source§fn generate_cp_signature(
&mut self,
message: &Message,
) -> ChaumPedersenSignature<E>
fn generate_cp_signature( &mut self, message: &Message, ) -> ChaumPedersenSignature<E>
The proof of possession generator is supposed to
to produce a schnoor signature of the message using
the secret key which it claim to possess.
fn generate_dleq_proof( &mut self, message: &Message, bls_signature: E::SignatureGroup, ) -> SchnorrProof<E>
fn generate_witness_scaler( &self, message_point_as_bytes: &Vec<u8>, ) -> <<E as EngineBLS>::PublicKeyGroup as Group>::ScalarField
Source§impl<E: EngineBLS> Clone for SecretKeyVT<E>
impl<E: EngineBLS> Clone for SecretKeyVT<E>
Source§impl<E: EngineBLS> DoublePublicKeyScheme<E> for SecretKeyVT<E>
impl<E: EngineBLS> DoublePublicKeyScheme<E> for SecretKeyVT<E>
Source§fn sign(&mut self, message: &Message) -> DoubleSignature<E>
fn sign(&mut self, message: &Message) -> DoubleSignature<E>
Sign a message using a Seedabale RNG created from a seed derived from the message and key
fn into_public_key_in_signature_group(&self) -> PublicKeyInSignatureGroup<E>
Source§fn into_double_public_key(&self) -> DoublePublicKey<E>
fn into_double_public_key(&self) -> DoublePublicKey<E>
Return a double public object containing public keys both in G1 and G2
Source§impl<E: EngineBLS> SerializableToBytes for SecretKeyVT<E>
impl<E: EngineBLS> SerializableToBytes for SecretKeyVT<E>
const SERIALIZED_BYTES_SIZE: usize = E::SECRET_KEY_SIZE
fn to_bytes(&self) -> Vec<u8>
fn from_bytes(bytes: &[u8]) -> Result<Self, SerializationError>
Source§impl<E: EngineBLS> Valid for SecretKeyVT<E>
impl<E: EngineBLS> Valid for SecretKeyVT<E>
fn check(&self) -> Result<(), SerializationError>
fn batch_check<'a>(
batch: impl Iterator<Item = &'a Self> + Send,
) -> Result<(), SerializationError>where
Self: 'a,
Auto Trait Implementations§
impl<E> Freeze for SecretKeyVT<E>
impl<E> RefUnwindSafe for SecretKeyVT<E>
impl<E> Send for SecretKeyVT<E>
impl<E> Sync for SecretKeyVT<E>
impl<E> Unpin for SecretKeyVT<E>
impl<E> UnwindSafe for SecretKeyVT<E>
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<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
)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