You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.5 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
Verifier circuit (#23) * ECC scalar multiplication (first draft) * fix clippy nits * start implementing the ro gadget: 1st design Poseidon + truncate * truncate to 128 bits * implement add + double in constraints * finish implementing constraints for ecc * cargo fmt * input of smul should be an array of bits * cleanup ro a bit. Make the challenge returned be a vec of allocated bits * switch to neptune 6.0 * start implementing high level circuit * incomplete version of the verifier circuit with many TODOS * optimize ecc ops. add i ==0 case to the circuit * fix 0/1 constants at the circuit * wrap CompressedGroupElement of Pallas and Vesta * cargo fmt * generate poseidon constants once instead of every time we call get_challenge * Implement RO-based poseidon to use outside of circuit. Reorganize the repo * add inner circuit to verification circuit * start adding folding of the io. there is an error in the first call to mult_mod * add test to check that bellperson-nonnative is compatible with nova * remove swap file * add another test that fails * add inputs to the circuits in tests * rename q to m in circuit.rs. add more tests in test_bellperson_non_native. change a in test_mult_mod to expose error * push test for equal_with_carried. fix the issue is src/r1cs.rs * cargo fmt + update the verifier circuit: add folding of X and update all hashes with X * make limb_width and n_limbs parameters * make params part of h1 * allocate the field order as constant. add check that z0 == zi when i == 0 * fix error in test_poseidon_ro * remove merge error * small fixes * small fixes to comments * clippy lints * small edits; rename tests * move inputize before from_num * _limbs --> _bn * _limbs --> _bn Co-authored-by: Ioanna <iontzialla@gmail.com>
2 years ago
  1. [package]
  2. name = "nova-snark"
  3. version = "0.20.1"
  4. authors = ["Srinath Setty <srinath@microsoft.com>"]
  5. edition = "2021"
  6. description = "Recursive zkSNARKs without trusted setup"
  7. documentation = "https://docs.rs/nova-snark/"
  8. readme = "README.md"
  9. repository = "https://github.com/Microsoft/Nova"
  10. license-file = "LICENSE"
  11. keywords = ["zkSNARKs", "cryptography", "proofs"]
  12. [dependencies]
  13. bellperson = { version = "0.24", default-features = false }
  14. ff = { version = "0.12.0", features = ["derive"] }
  15. digest = "0.8.1"
  16. sha3 = "0.8.2"
  17. rayon = "1.3.0"
  18. rand_core = { version = "0.6.0", default-features = false }
  19. rand_chacha = "0.3"
  20. itertools = "0.9.0"
  21. subtle = "2.4"
  22. pasta_curves = { version = "0.5.2", features = ["repr-c", "serde"], package = "fil_pasta_curves" }
  23. neptune = { version = "8.1.0", default-features = false }
  24. generic-array = "0.14.4"
  25. num-bigint = { version = "0.4", features = ["serde", "rand"] }
  26. num-traits = "0.2"
  27. num-integer = "0.1"
  28. serde = { version = "1.0", features = ["derive"] }
  29. bincode = "1.2.1"
  30. flate2 = "1.0"
  31. bitvec = "1.0"
  32. byteorder = "1.4.3"
  33. thiserror = "1.0"
  34. [target.'cfg(any(target_arch = "x86_64", target_arch = "aarch64"))'.dependencies]
  35. pasta-msm = { version = "0.1.0", package = "lurk-pasta-msm" }
  36. [dev-dependencies]
  37. criterion = "0.3.1"
  38. rand = "0.8.4"
  39. hex = "0.4.3"
  40. [[bench]]
  41. name = "recursive-snark"
  42. harness = false
  43. [[bench]]
  44. name = "compressed-snark"
  45. harness = false
  46. [features]
  47. default = []
  48. cuda = ["neptune/cuda", "neptune/pasta", "neptune/arity24"]
  49. opencl = ["neptune/opencl", "neptune/pasta", "neptune/arity24"]