[][src]Struct koibumi_core::identity::DeterministicBuilder

pub struct DeterministicBuilder { /* fields omitted */ }

A builder for building a deterministic identity.

Implementations

impl DeterministicBuilder[src]

pub fn config(&mut self, v: &Config) -> &mut Self[src]

A shortcut to set parameters from a config object.

pub fn version(&mut self, v: AddressVersion) -> &mut Self[src]

Sets the address version.

pub fn stream(&mut self, v: StreamNumber) -> &mut Self[src]

Sets the stream number.

pub fn zeros(&mut self, v: usize) -> &mut Self[src]

Sets the minimum count of leading zeros in the hash of the public keys.

pub fn features(&mut self, v: Features) -> &mut Self[src]

Sets the features.

pub fn nonce_trials_per_byte(&mut self, v: NonceTrialsPerByte) -> &mut Self[src]

Sets the nonce trials per byte.

pub fn payload_length_extra_bytes(
    &mut self,
    v: PayloadLengthExtraBytes
) -> &mut Self
[src]

Sets the payload length extra bytes.

pub fn build(
    &self,
    n: usize,
    cancel: Arc<AtomicBool>
) -> Result<Vec<Private>, Error>
[src]

Returns the private identity this builder represents.

Trait Implementations

impl Clone for DeterministicBuilder[src]

impl Debug for DeterministicBuilder[src]

impl Eq for DeterministicBuilder[src]

impl Hash for DeterministicBuilder[src]

impl PartialEq<DeterministicBuilder> for DeterministicBuilder[src]

impl StructuralEq for DeterministicBuilder[src]

impl StructuralPartialEq for DeterministicBuilder[src]

Auto Trait Implementations

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> 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.