Skip to content

Commit

Permalink
Add usefullness of U256
Browse files Browse the repository at this point in the history
  • Loading branch information
aajj999 committed May 31, 2024
1 parent 585003a commit 049fdf6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ethereum/circuits/lib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ struct TransactionWithinBlock<MAX_DATA_LEN> {
## U256

U256 is a structure to use as a type for big numbers.
It is used when dealing with numbers up to 2<sup>256</sup>. They can exceed Field maximum value.
It is used when dealing with numbers up to 2<sup>256</sup>. 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.

Expand Down

0 comments on commit 049fdf6

Please sign in to comment.