boltlabs-inc / tss-ecdsa

An implementation of a threshold ECDSA signature scheme
Other
11 stars 5 forks source link

Update `Display` instance for `ParticipantIdentifier` #538

Closed gatoWololo closed 1 month ago

gatoWololo commented 1 month ago

Smol PR for cleaning up a few things.

The Display change uses the last 4 bytes instead of the first 4 bytes for pretty display purposes. As it is more likely that the underlying u128 will have these least significant digits vs the most significant digits. Printed, it now looks like ParticipantId(0x77d6b86ab8).

This fixes an issue in our MPC Demo where IDs look like: ParticipantId(00000000) since they are seeded from u32 values (which are always zero in those most significant digits :face_exhaling: )