-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(abi)!: add an explicit mapping from ABI params to witness indices (
#851) * feat: track all parameter witnesses in evaluator * chore: use explicit witness map for encoding/decoding witness map * chore: move `param_witnesses` to be stored within ABI * feat: create separate methods for encoding to a witness vs verifier inputs * chore: move encode_value and decode_value back inside Abi's impl * chore: remove clone from `encode_to_witness` * chore: use try_btree_map instead of unwrapping * feat: check for unexpected inputs when encoding a witness * chore: use InputMap and WitnessMap types in ABI * chore: update stale comment * chore: apply input validation checks on new encoding method * chore: clippy * chore: remove unnecessary clone * feat: add smoke test for abi encoding and decoding * chore: remove todo * chore: return abi from compile_circuit * chore: simplify returning `CompiledProgram` * chore: clippy * feat: return AbiError if witness value can't be found * chore: add documentation for Abi fields * fix: re-add `public_inputs` field to `Evaluator` * chore: remove stale code from BTreeSet experiment * chore: fix merge issues * fix: re-add deleted `num_witnesses_abi_len` init
- Loading branch information
1 parent
479da0e
commit 5bd4bd5
Showing
12 changed files
with
222 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.