[−][src]Struct secp256kfun::nonce::Deterministic
A deterministic nonce generator.
You should prefer Synthetic
since it is more robust.
Example
use secp256kfun::{ hash::AddTag, nonce::{Deterministic, NonceGen}, }; use sha2::Sha256; let nonce_gen = Deterministic::<Sha256>::default() .add_protocol_tag("BIP340") // for example .add_application_tag("my-app");
Trait Implementations
impl<H: Tagged> AddTag for Deterministic<H>
[src]
fn add_application_tag(self, tag: &str) -> Self
[src]
fn add_protocol_tag(self, tag: &str) -> Self
[src]
impl<H: Clone> Clone for Deterministic<H>
[src]
fn clone(&self) -> Deterministic<H>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<H: Debug> Debug for Deterministic<H>
[src]
impl<H: Default> Default for Deterministic<H>
[src]
fn default() -> Deterministic<H>
[src]
impl<H: Tagged + Digest<OutputSize = U32> + Clone> NonceGen for Deterministic<H>
[src]
type Hash = H
The type of hash that begin_derivation
will return.
fn begin_derivation(&self, secret: &Scalar) -> Self::Hash
[src]
Auto Trait Implementations
impl<H> RefUnwindSafe for Deterministic<H> where
H: RefUnwindSafe,
H: RefUnwindSafe,
impl<H> Send for Deterministic<H> where
H: Send,
H: Send,
impl<H> Sync for Deterministic<H> where
H: Sync,
H: Sync,
impl<H> Unpin for Deterministic<H> where
H: Unpin,
H: Unpin,
impl<H> UnwindSafe for Deterministic<H> where
H: UnwindSafe,
H: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Mark for T
[src]
#[must_use]fn mark<M>(Self) -> <M as ChangeMark<T>>::Out where
M: ChangeMark<T>,
[src]
M: ChangeMark<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,