pub struct KeygenId(pub(crate) String);Expand description
A base58 string representing the ID of a party in the key generation protocol.
The KeygenId uniquely identifies each participant in the multi-party computation
protocols for key generation, signing, and other operations. This ID is generated
during the initialization phase and must be shared with all other parties.
§Examples
use sodot_mpc::KeygenId;
// Create a KeygenId from a base58 string
let id = KeygenId::new("2WpjFqPh8TqQKqZKZXgW8a".to_string());
println!("Keygen ID: {:?}", id);
// Access the inner string
assert_eq!(id.as_str(), "2WpjFqPh8TqQKqZKZXgW8a");Tuple Fields§
§0: StringImplementations§
Trait Implementations§
impl Eq for KeygenId
impl StructuralPartialEq for KeygenId
Auto Trait Implementations§
impl Freeze for KeygenId
impl RefUnwindSafe for KeygenId
impl Send for KeygenId
impl Sync for KeygenId
impl Unpin for KeygenId
impl UnwindSafe for KeygenId
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