pub struct RoomUUID(pub(crate) String);Expand description
A hex string representing a room UUID for MPC operations.
A RoomUUID is created for each multi-party computation operation (such as key generation,
signing, refresh, etc.) and acts as a session identifier to synchronize all involved parties.
All parties participating in the same operation must use the same room UUID.
§Usage
Rooms are created by one party (typically the coordinator) and the UUID is shared with all other participants. The room coordinates the communication and synchronization between parties during the MPC protocol execution.
§Examples
use sodot_mpc::RoomUUID;
// Create a RoomUUID from a string
let room_id = "00000002fddbfdea06319915f5862909".to_string();
let room_uuid = RoomUUID::new(room_id);
println!("Created room: {:?}", room_uuid);
// In tests, you can access the inner value
#[cfg(test)]
{
assert_eq!(room_uuid.as_str(), "00000002fddbfdea06319915f5862909");
}Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RoomUUID
impl RefUnwindSafe for RoomUUID
impl Send for RoomUUID
impl Sync for RoomUUID
impl Unpin for RoomUUID
impl UnwindSafe for RoomUUID
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