pub struct BackupShare {
pub identifier: u16,
pub threshold: u16,
pub total_shares: u16,
pub group_pubkey: String,
pub name: String,
pub created_at: i64,
pub last_used: Option<i64>,
pub sign_count: u64,
pub did_backup: bool,
pub key_package: String,
pub pubkey_package: String,
pub ciphersuite: Ciphersuite,
}Expand description
A FROST share entry in a backup file.
Fields§
§identifier: u16Share identifier index.
threshold: u16Signing threshold.
Total number of shares.
group_pubkey: StringHex-encoded group public key.
name: StringHuman-readable name.
created_at: i64Unix timestamp when the share was created.
last_used: Option<i64>Unix timestamp when the share was last used.
sign_count: u64Number of signatures produced.
did_backup: boolWhether this share has been backed up.
key_package: StringHex-encoded serialized key package.
pubkey_package: StringHex-encoded serialized public key package.
ciphersuite: CiphersuiteFROST ciphersuite of this share.
Defaults to Secp256k1Tr so backups written before this field existed
restore unchanged.
Trait Implementations§
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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