Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
qwang98 authored Jul 17, 2023
1 parent dd7e232 commit 358e034
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ You should see a print out of the parsed Rust AST circuit using the Debug trait.

# Technical Design
Python front end -> Python AST object -> serialize to JSON string -> pass JSON string to Rust using PyO3 -> deserialize JSON string to Rust AST defined in deserialize_types.rs -> convert to Chiquito AST
Notes:
- Likewise for `TraceWitness`.
## Notes:
- The process is likewise for `TraceWitness`.
- Types in deserialize_types.rs are almost identical to Chiquito AST. They are created so that I can implement `Deserialize` trait for them. I cannot implement `Deserialize` trait for Chiquito types, because it's not allowed to implement a trait for a type in a third file in Rust
- `Deserialize` trait is implemented in deserialize.rs
- AST defined in deserialize_types.rs is converted to Chiquito AST using functions in convert_to_chiquito.rs
- Rust bindings to expose to Python are in lib.rs

# TODOs
- Python functions for creating AST in PyChiquito
Expand Down

0 comments on commit 358e034

Please sign in to comment.