Skip to content
This repository was archived by the owner on Jun 10, 2020. It is now read-only.

Commit 15b1036

Browse files
authored
Merge pull request #10 from drand/rfcv7
use rfc v7 spec
2 parents 5ba2de2 + 466138b commit 15b1036

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

.circleci/config.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ jobs:
88
# specify the version
99
- image: circleci/golang:latest
1010

11-
# Specify service dependencies here if necessary
12-
# CircleCI maintains a library of pre-built images
13-
# documented at https://circleci.com/docs/2.0/circleci-images/
14-
# - image: circleci/postgres:9.4
15-
1611
working_directory: /go/src/github.com/drand/bls12-381
1712
steps:
1813
- checkout

kyber_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ func TestKyberThresholdG1(t *testing.T) {
313313
}
314314

315315
func TestKyberMap(t *testing.T) {
316+
t.Skip("waiting for paired to upgrade to v7")
316317
// TEST compatibility with pairing_plus v19 hash-to-curve
317318
type Hashable interface {
318319
Hash(msg []byte) kyber.Point

swu.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func swuMapG1(u *fe) (*fe, *fe) {
4545
}
4646
y := new(fe)
4747
sqrt(y, y2)
48-
if y.signBE() != u.signBE() {
48+
if y.sign() != u.sign() {
4949
neg(y, y)
5050
}
5151
return x, y
@@ -109,7 +109,7 @@ func swuMapG2(e *fp2, u *fe2) (*fe2, *fe2) {
109109
}
110110
y := e.new()
111111
e.sqrt(y, y2)
112-
if y.signBE() != u.signBE() {
112+
if y.sign() != u.sign() {
113113
e.neg(y, y)
114114
}
115115
return x, y

0 commit comments

Comments
 (0)