[][src]Struct secp256kfun::nonce::Deterministic

pub struct Deterministic<H> { /* fields omitted */ }

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]

impl<H: Clone> Clone for Deterministic<H>[src]

impl<H: Debug> Debug for Deterministic<H>[src]

impl<H: Default> Default for 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.

Auto Trait Implementations

impl<H> RefUnwindSafe for Deterministic<H> where
    H: RefUnwindSafe

impl<H> Send for Deterministic<H> where
    H: Send

impl<H> Sync for Deterministic<H> where
    H: Sync

impl<H> Unpin for Deterministic<H> where
    H: Unpin

impl<H> UnwindSafe for Deterministic<H> where
    H: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Mark for T[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.