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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Remove is_dummy from Record struct and add implicit inner circuit enforcement #306

Closed
Tracked by #233
howardwu opened this issue Jul 27, 2021 · 5 comments
Labels
staging Staging

Comments

@howardwu
Copy link
Contributor

howardwu commented Jul 27, 2021

馃殌 Feature

Remove is_dummy from Record struct and add implicit inner circuit enforcement. We can also forgo encoding and encrypting it into encrypted records - note that this doesn't change the encrypted record size, however it should ever so slightly decrease the constraint count of the inner circuit. However, the added enforcement of is_dummy is accrued in the inner circuit (but we should be doing this check).

Motivation

(Outline your motivation here)

Implementation

Are you willing to open a pull request? (See CONTRIBUTING)

@howardwu howardwu added the staging Staging label Jul 27, 2021
@raychu86
Copy link
Contributor

Relevant issue - https://github.com/AleoHQ/snarkOS/issues/343.

@howardwu
Copy link
Contributor Author

Also, we should rename this check to is_noop.

@howardwu
Copy link
Contributor Author

This change will improve the record_commitment constraint cost and native size cost. We currently allocate the bit as a byte and pay for 1 extra byte wherever this record_commitment is checked.

@Pratyush
Copy link
Contributor

This enables differentiating between normal transactions and transactions that use dummy records, no?

@howardwu
Copy link
Contributor Author

Closing as dummy records will no longer be necessary with design changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
staging Staging
Projects
None yet
Development

No branches or pull requests

3 participants