Skip to content

Commit

Permalink
Added bytes information to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Metachaser24 committed Mar 26, 2024
1 parent 27c60d8 commit a51b3be
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/circuits/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,10 @@ The `utils.circom` file includes a collection of utility templates and functions

### bytes2ints.circom

This template converts an array of bytes into an array of integers. It is designed to handle inputs of any byte size and outputs integers based on the number of bytes specified. This is particularly useful for processing large binary data within arithmetic circuits.

This template converts an array of bytes into an array of integers. It is designed to handle inputs of any byte size and outputs integers based on the number of bytes specified. This is particularly useful for processing large binary data within arithmetic circuits. Specifically, the template is configured to transform 31 bytes into one integer, aligning with circoms maximum field value which is a 31-byte number. It uses little endian order for representation.
### constants.circom

This file defines a set of constants used across various templates within the `circuits` package. These constants include maximum sizes for emails, domains, invitation codes, and timestamps, as well as specifications for packing bytes into field elements.
This file defines a set of constants used across various templates within the `circuits` package. These constants include maximum sizes for emails, domains, and timestamps, as well as specifications for packing bytes into field elements.

### digit2int.circom

Expand Down

0 comments on commit a51b3be

Please sign in to comment.