Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

supports larger sized input & output utxos #83

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

Conversation

Chengxuan
Copy link
Contributor

@Chengxuan Chengxuan commented Sep 24, 2024

This PR propose a method for all the fungible tokens to support more than 2 inputs.

  • A batch version of circom circuits has been proposed for each token examples
  • The solidity contract has been updated to choose between the small (2) and large (10) input circuit depends on the input size
  • Contract with encrypted values now returns encrypted values of all outputs (rather than the first one) for batching scenario
  • didn't write new tests for batch version of the circuit as the core logic has already been covered by existing tests
  • added -v verbose mode which prints out output of circom commands. it contains the number of constraints in the generated circuit, which is helpful for picking PTAU files
  • added a test to ensure concurrent witness generation works as expected in golang SDK: golang witness generation concurrency test #87

Resolves #8

Signed-off-by: Chengxuan Xing <[email protected]>
@Chengxuan Chengxuan changed the title adding batch circuits supports more input & output utxos Sep 24, 2024
@Chengxuan Chengxuan marked this pull request as ready for review September 26, 2024 11:33
@Chengxuan Chengxuan changed the title supports more input & output utxos supports larger sized input & output utxos Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider a larger sized inputs and outputs arrays for the fungible tokens
1 participant