docknetwork / crypto

Rust crypto library for data privacy tools
Apache License 2.0
78 stars 21 forks source link

Replace `usize` with `u32` in serialized/deserialized structs to avoid cross-platform issues #17

Closed olegnn closed 10 months ago

lovesh commented 10 months ago

Thanks for these changes. Can you please make the following changes

  1. Update message_count to u32 here , here, here, here and here.
  2. Change here and here to u32.
  3. We use this pattern of generating affine or projective elements by hashing with a label and a counter at a few places in the codebase. Can you move it to a macro in utils crate and just use the macro keeping the counter as u32 in the macro.