0xMiden / 0xMiden/air-script

[Plonky3 Codegen] Improve the usage of `build_aux_trace_with_miden_vm`

Aperta
#522 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
96
Fork
39
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

In #515, the user can choose to delegate the aux trace generation to the miden-vm repo through the helper `build_aux_trace_with_miden_vm`.

Currently, the function takes as arguments the main trace, the challenges, and the module to generate the trace for (`MidenModule` with variants `Chiplets`, `Decoder`, `Stack`, `Range`).

However, we could improve this functionin several ways:
- we could directly build the whole aux trace at once (through the following code: https://github.com/0xMiden/miden-vm/blob/926a0c6b714cc69a52596aefad3c77b294750ddc/processor/src/trace/mod.rs#L267)
- we could have more arguments, for instance the chiplets aux builder may need additional info such as `kernel`, `ace_hints` and `final_transcript_state`
- we could optimize the conversion back from miden_vm trace to plonky3 trace: see comment _Originally posted by @adr1anh in https://github.com/0xMiden/air-script/pull/515#discussion_r2559789464_
- finally, depending on how it will be used in MidenVM (once an E2E workflow has been established we'll see what is easiest to work with)

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Examine the `build_aux_trace_with_miden_vm` function and its usage in the codebase. Review the linked MidenVM trace generation code and the PR discussion for optimization ideas. Understand the MidenModule variants and what additional data each needs. The goal is to refactor the function to build the full aux trace, accept more arguments, and improve trace conversion.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
rust
Ambito
backend-api-design, devtools
Tipo di issue
Refactoring
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.