diff --git a/.github/NIGHTLY_CANARY_DIED.md b/.github/NIGHTLY_CANARY_DIED.md index 4b20ca0..4300ee3 100644 --- a/.github/NIGHTLY_CANARY_DIED.md +++ b/.github/NIGHTLY_CANARY_DIED.md @@ -1,7 +1,8 @@ --- title: "Tests fail on latest Nargo nightly release" +assignees: TomAFrench, kashbrti, jtriley-eth --- The tests on this Noir project have started failing when using the latest nightly release of the Noir compiler. This likely means that there have been breaking changes for which this project needs to be updated to take into account. -Check the [{{env.WORKFLOW_NAME}}]({{env.WORKFLOW_URL}}) workflow for details. \ No newline at end of file +Check the [{{env.WORKFLOW_NAME}}]({{env.WORKFLOW_URL}}) workflow for details. diff --git a/Nargo.toml b/Nargo.toml index 2564960..3432caa 100644 --- a/Nargo.toml +++ b/Nargo.toml @@ -5,3 +5,4 @@ authors = [""] compiler_version = ">=0.36.0" [dependencies] +ec = { tag = "v0.1.2", git = "https://github.com/noir-lang/ec" } diff --git a/src/lib.nr b/src/lib.nr index a1656c4..307d5f3 100644 --- a/src/lib.nr +++ b/src/lib.nr @@ -1,8 +1,8 @@ use std::default::Default; -use std::ec::consts::te::baby_jubjub; -use std::ec::tecurve::affine::Point as TEPoint; use std::hash::Hasher; +use ec::{consts::te::baby_jubjub, tecurve::affine::Point as TEPoint}; + pub fn eddsa_verify( pub_key_x: Field, pub_key_y: Field, @@ -56,11 +56,11 @@ pub fn eddsa_to_pub(secret: Field) -> (Field, Field) { } mod tests { - use std::ec::consts::te::baby_jubjub; - use std::ec::tecurve::affine::Point as TEPoint; use std::hash::poseidon::PoseidonHasher; use std::hash::poseidon2::Poseidon2Hasher; + use ec::{consts::te::baby_jubjub, tecurve::affine::Point as TEPoint}; + use super::{eddsa_to_pub, eddsa_verify}; #[test]