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

Pass only LO words of wrapping proof inputs #46

Open
dtebbs opened this issue Sep 30, 2020 · 0 comments
Open

Pass only LO words of wrapping proof inputs #46

dtebbs opened this issue Sep 30, 2020 · 0 comments
Labels
solidity Task related to the Solidity part of the code base

Comments

@dtebbs
Copy link
Contributor

dtebbs commented Sep 30, 2020

Inputs to the wrapper proof are currently passed as bw6-761 scalars (2 evm words) but can be held in a single evm word and zero padded only when required for proof verification.
The same is true for hashes (vk and inputs) is they do not exceed 256 bits.

UPDATE: most Inputs to the wrapper proof are passed to the contract as bw6-761 scalars (2 evm words) but can be held in a single evm word and zero padded when required for proof verification. One exception is the nested vk hash (#67), which requires a full (2-word) scalar.

@dtebbs dtebbs changed the title Pass only LO words of wrappingn proof inputs Pass only LO words of wrapping proof inputs Sep 30, 2020
@AntoineRondelet AntoineRondelet added the solidity Task related to the Solidity part of the code base label Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solidity Task related to the Solidity part of the code base
Projects
None yet
Development

No branches or pull requests

2 participants