Skip to content

Commit

Permalink
Merge pull request kilic#10 from drand/rfcv7
Browse files Browse the repository at this point in the history
use rfc v7 spec
  • Loading branch information
nikkolasg committed Apr 28, 2020
2 parents 5ba2de2 + 466138b commit 15b1036
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
5 changes: 0 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions kyber_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions swu.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 15b1036

Please sign in to comment.