Stream: beginners

Topic: U256


view this post on Zulip Matthieu Pizenberg (Jun 05 2024 at 23:31):

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?

view this post on Zulip Richard Feldman (Jun 05 2024 at 23:36):

this looks like a Rust one: https://docs.rs/primitive-types/latest/primitive_types/struct.U256.html

view this post on Zulip Matthieu Pizenberg (Jun 05 2024 at 23:44):

Seems it’s implemented with a macro that I can’t find construct_uint

view this post on Zulip Matthieu Pizenberg (Jun 05 2024 at 23:45):

ah coming from the uint package

view this post on Zulip Matthieu Pizenberg (Jun 06 2024 at 08:04):

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