From 466138b06d6957c249f8d0281ea28ba5d5f02de1 Mon Sep 17 00:00:00 2001 From: nikkolasg Date: Tue, 28 Apr 2020 17:22:25 +0100 Subject: [PATCH] use rfc v7 spec --- .circleci/config.yml | 5 ----- kyber_test.go | 1 + swu.go | 4 ++-- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 43ef0f9..19dcd0f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,11 +8,6 @@ jobs: # specify the version - image: circleci/golang:latest - # Specify service dependencies here if necessary - # CircleCI maintains a library of pre-built images - # documented at https://circleci.com/docs/2.0/circleci-images/ - # - image: circleci/postgres:9.4 - working_directory: /go/src/github.com/drand/bls12-381 steps: - checkout diff --git a/kyber_test.go b/kyber_test.go index 72f31e4..c3b0e39 100644 --- a/kyber_test.go +++ b/kyber_test.go @@ -313,6 +313,7 @@ func TestKyberThresholdG1(t *testing.T) { } func TestKyberMap(t *testing.T) { + t.Skip("waiting for paired to upgrade to v7") // TEST compatibility with pairing_plus v19 hash-to-curve type Hashable interface { Hash(msg []byte) kyber.Point diff --git a/swu.go b/swu.go index 36e74f8..0242999 100644 --- a/swu.go +++ b/swu.go @@ -45,7 +45,7 @@ func swuMapG1(u *fe) (*fe, *fe) { } y := new(fe) sqrt(y, y2) - if y.signBE() != u.signBE() { + if y.sign() != u.sign() { neg(y, y) } return x, y @@ -109,7 +109,7 @@ func swuMapG2(e *fp2, u *fe2) (*fe2, *fe2) { } y := e.new() e.sqrt(y, y2) - if y.signBE() != u.signBE() { + if y.sign() != u.sign() { e.neg(y, y) } return x, y