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: )
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 likeParticipantId(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: )