From c1a4c383cfeedc5801b6358f133bf89d27e4cc8e Mon Sep 17 00:00:00 2001 From: Tom French Date: Wed, 27 Nov 2024 10:08:09 +0000 Subject: [PATCH] fix: use `ec` library instead of standard library --- .github/NIGHTLY_CANARY_DIED.md | 3 ++- Nargo.toml | 1 + src/lib.nr | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) 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..5d1b77c 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,