Skip to content

Commit

Permalink
Merge pull request #35 from AlverLyu/master
Browse files Browse the repository at this point in the history
remove dependency on ontology
  • Loading branch information
kunxian-xia authored Sep 12, 2019
2 parents 5741788 + cea0f8f commit 78502e5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions vrf/vrf.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import (
"github.com/ontio/ontology-crypto/ec"
"github.com/ontio/ontology-crypto/keypair"
"github.com/ontio/ontology-crypto/sm3"
"github.com/ontio/ontology/common/log"
)

var (
Expand Down Expand Up @@ -71,7 +70,6 @@ func Verify(pub keypair.PublicKey, msg, vrf, nizk []byte) (bool, error) {
proof := append(nizk, vrf...)
_, err := ProofToHash(pk.PublicKey, h, msg, proof)
if err != nil {
log.Debugf("verifying VRF failed: %v", err)
return false, nil
}
return true, nil
Expand Down

0 comments on commit 78502e5

Please sign in to comment.