[][src]Struct ssss::SSSSConfig

pub struct SSSSConfig { /* fields omitted */ }

Configuration used to drive the gen_shares function.

Notes

The default configuration will specify 5 shares with a threshold of 3. The maximum secret size is u16::MAX (65536)

Implementations

impl SSSSConfig[src]

pub fn set_num_shares(&mut self, val: u8) -> &mut Self[src]

The total shares to be generate from a secret

pub fn set_threshold(&mut self, val: u8) -> &mut Self[src]

The threshold of valid shares required to unlock a secret This must be less than or equal to the number of shares

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

The maximum secret size in bytes

Trait Implementations

impl Clone for SSSSConfig[src]

impl Copy for SSSSConfig[src]

impl Debug for SSSSConfig[src]

impl Default for SSSSConfig[src]

impl<'de> Deserialize<'de> for SSSSConfig[src]

impl Serialize for SSSSConfig[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,