Skip to content

Replace some `u32` by `usize` in wotn crate to avoid casts.

Array indexing is done with usize in Rust. It's then used in many methods of WebOfTrust. However, some methods or structs use u32 needing casts while giving no advantages. We propose to replace all u32 values linked to node counting (linked to array sizes expressed in usize).

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information