Struct bc_components::SSKRShare
source · pub struct SSKRShare(/* private fields */);Expand description
An SSKR share.
Implementations§
sourcepub fn identifier(&self) -> u16
pub fn identifier(&self) -> u16
Returns the unique identifier of the split to which this share belongs.
sourcepub fn identifier_hex(&self) -> String
pub fn identifier_hex(&self) -> String
Returns the unique identifier of the split to which this share belongs as a hex string.
sourcepub fn group_threshold(&self) -> usize
pub fn group_threshold(&self) -> usize
Returns the minimum number of groups whose quorum must be met to reconstruct the secret.
pub fn group_count(&self) -> usize
sourcepub fn group_index(&self) -> usize
pub fn group_index(&self) -> usize
Returns the index of the group to which this share belongs.
sourcepub fn member_threshold(&self) -> usize
pub fn member_threshold(&self) -> usize
Returns the minimum number of shares within the group to which this share belongs that must be combined to meet the group threshold.
sourcepub fn member_index(&self) -> usize
pub fn member_index(&self) -> usize
Returns the index of this share within the group to which it belongs.
Trait Implementations§
The CBOR tags assocated with this type. If more than one tag is present,
they are considered equivalent for reading, but only the first one is
used for writing.
source§fn from_untagged_cbor(cbor: &CBOR) -> Result<Self>
fn from_untagged_cbor(cbor: &CBOR) -> Result<Self>
Creates an instance of this type by decoding it from untagged CBOR.
source§fn from_tagged_cbor(cbor: &CBOR) -> Result<Self, Error>where
Self: Sized,
fn from_tagged_cbor(cbor: &CBOR) -> Result<Self, Error>where
Self: Sized,
Creates an instance of this type by decoding it from tagged CBOR.
source§fn untagged_cbor(&self) -> CBOR
fn untagged_cbor(&self) -> CBOR
Returns the untagged CBOR encoding of this instance.
source§fn tagged_cbor(&self) -> CBOR
fn tagged_cbor(&self) -> CBOR
Returns the tagged CBOR encoding of this instance.
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more