-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: avoid the associated type PrettyField that relies on kimchi lib. * Add R1CS bls12_381 backend * Apply same set of tests to r1cs backend * Add SnarkjsExporter to generate .r1cs and .wtns files in snarkjs format * Update noname run command to generate circuit and witness * remove the use of option in lc * refactor witness_var interface * refactor witness vars in r1cs to vector
- Loading branch information
Showing
13 changed files
with
1,618 additions
and
154 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
use ark_bls12_381::Fr; | ||
|
||
use crate::{ | ||
circuit_writer::{CircuitWriter, VarInfo}, | ||
constants::Span, | ||
error::Result, | ||
var::Var, | ||
}; | ||
|
||
use super::R1csBls12_381; | ||
|
||
// todo: impl this | ||
pub fn poseidon( | ||
compiler: &mut CircuitWriter<R1csBls12_381>, | ||
vars: &[VarInfo<Fr>], | ||
span: Span, | ||
) -> Result<Option<Var<Fr>>> { | ||
// dummy for now | ||
unimplemented!() | ||
} |
Oops, something went wrong.