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

public-vm(aztec-nr): macro flag for transpilation #4312

Closed
4 of 5 tasks
Tracked by #3313
Maddiaa0 opened this issue Jan 30, 2024 · 1 comment
Closed
4 of 5 tasks
Tracked by #3313

public-vm(aztec-nr): macro flag for transpilation #4312

Maddiaa0 opened this issue Jan 30, 2024 · 1 comment
Assignees
Labels
C-avm Component: AVM related tickets (aka public VM)

Comments

@Maddiaa0
Copy link
Member

Maddiaa0 commented Jan 30, 2024

Overview

With / assuming the completion of #4227

The avm bytecode is generated by running ./transpile <input> <output> for each noir output artifact.

If we were to ship this approach to developers once the AVM becomes inshrined within the protocol, we would be required to also ship a complication aztec-nargo build script that ran the transpiler aswell.

I do not think we want to do this, but instead we should have something that is integrated with noir's current aztec-macros abstraction leak.

#[aztec(public-vm)]
fn transfer_public(to: Field, amount: Field) {
...
}

Where does the code go?

Aztec noir's macros currently only perform preprocessing, but to perform transpilation from within aztec-nargo we want to perform postprocessing.

Implementation Steps

Tasks

Preview Give feedback
  1. C-avm
    Maddiaa0
@fcarreiro
Copy link
Contributor

This was completed by @dbanks12 . Long-term enshrining has to be debated :)

@github-project-automation github-project-automation bot moved this from Todo to Done in A3 Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-avm Component: AVM related tickets (aka public VM)
Projects
Archived in project
Development

No branches or pull requests

2 participants