From c61a477d188953605f7e93c17435bbc8324158f3 Mon Sep 17 00:00:00 2001 From: Anna Jablonowska Date: Wed, 29 May 2024 12:38:38 +0200 Subject: [PATCH] Add usefullness of U256 --- ethereum/circuits/lib/README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ethereum/circuits/lib/README.md b/ethereum/circuits/lib/README.md index dacf3135..6c580d5d 100644 --- a/ethereum/circuits/lib/README.md +++ b/ethereum/circuits/lib/README.md @@ -209,7 +209,8 @@ struct TransactionWithinBlock { ## U256 U256 is a structure to use as a type for big numbers. -It is used when dealing with numbers up to 2256. They can exceed Field maximum value. +It is used when dealing with numbers up to 2256. They can exceed Field maximum value. +In particular it is a word size in ETH and therefore it is a basic type used in both storage and slot values calculations. [There](.src/uint256.nr) is an unoptimized implementation of this type using two U128 structures. Optimized version will appear in Noir.