pub struct Sigkey(pub VerkeyGroup, pub Vec<SignatureGroup>);Expand description
Secret key sk can be seen as (sk’, sk’‘) where sk’’ is itself a vector with initial (and max) length l+1 Sigkey will be cleared on drop as both G1 and G2 elements are cleared on drop
Tuple Fields§
§0: VerkeyGroup§1: Vec<SignatureGroup>Implementations§
Source§impl Sigkey
impl Sigkey
Sourcepub fn initial_secret_key<R: RngCore + CryptoRng>(
gen: &VerkeyGroup,
gens: &[SignatureGroup],
master_secret: &MasterSecret,
rng: &mut R,
) -> Result<Self, PixelError>
pub fn initial_secret_key<R: RngCore + CryptoRng>( gen: &VerkeyGroup, gens: &[SignatureGroup], master_secret: &MasterSecret, rng: &mut R, ) -> Result<Self, PixelError>
Create secret key for the beginning, i.e. t=1
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Sigkey
impl<'de> Deserialize<'de> for Sigkey
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
Auto Trait Implementations§
impl Freeze for Sigkey
impl RefUnwindSafe for Sigkey
impl Send for Sigkey
impl Sync for Sigkey
impl Unpin for Sigkey
impl UnsafeUnpin for Sigkey
impl UnwindSafe for Sigkey
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§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