Our ParticipantIdentifier type currently only has one constructor fn random<R: RngCore + CryptoRng>(rng: &mut R) -> Self which allows us to generate a new ID from a secure RNG seed.
There is currently no was to create an ID from a number (u128). We must be able to assign known IDs to certain MPC nodes (see #524) so having this constructor would be very convenient. Note that ParticipantIdentifier implements the Serialize and Deserialize traits, so it is already possible to create ParticipantIdentifier from string literals: "id":177213907645657964211728100773878933118.
So this should not introduce any new security concerns.
Our
ParticipantIdentifier
type currently only has one constructorfn random<R: RngCore + CryptoRng>(rng: &mut R) -> Self
which allows us to generate a new ID from a secure RNG seed.There is currently no was to create an ID from a number (
u128
). We must be able to assign known IDs to certain MPC nodes (see #524) so having this constructor would be very convenient. Note thatParticipantIdentifier
implements theSerialize
andDeserialize
traits, so it is already possible to createParticipantIdentifier
from string literals:"id":177213907645657964211728100773878933118
.So this should not introduce any new security concerns.