I’m trying to implement the poly1305 hash function, which basically consists in computing few additions and multiplications over U256 numbers followed by a modulo (2^130 - 5), which is prime. Is anybody aware of an U256 impl already available somewhere?
this looks like a Rust one: https://docs.rs/primitive-types/latest/primitive_types/struct.U256.html
Seems it’s implemented with a macro that I can’t find construct_uint
ah coming from the uint package
oh my, it’s kinda involved. Do I want that much of a segway ... probably not ...
Last updated: Jul 06 2025 at 12:14 UTC