Struct bc_components::SSKRShare
source · pub struct SSKRShare(_);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§
source§fn from_untagged_cbor(cbor: &CBOR) -> Result<Self, Error>
fn from_untagged_cbor(cbor: &CBOR) -> Result<Self, Error>
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.