[−][src]Struct ssss::SSSSConfig
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]
pub fn clone(&self) -> SSSSConfig
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SSSSConfig
[src]
impl Debug for SSSSConfig
[src]
impl Default for SSSSConfig
[src]
impl<'de> Deserialize<'de> for SSSSConfig
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for SSSSConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for SSSSConfig
impl Send for SSSSConfig
impl Sync for SSSSConfig
impl Unpin for SSSSConfig
impl UnwindSafe for SSSSConfig
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,