Skip to content

Commit

Permalink
crypto/tss/dkg: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cychuang0924 committed Oct 18, 2021
1 parent 2c4251d commit 287fe53
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion crypto/ecpointgrouplaw/point_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@
package ecpointgrouplaw

import (
"github.com/getamis/alice/crypto/elliptic"
"fmt"
"math/big"

"github.com/getamis/alice/crypto/elliptic"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/extensions/table"
. "github.com/onsi/gomega"
Expand Down
2 changes: 1 addition & 1 deletion crypto/tss/addshare/newpeer/0_peer_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ package newpeer
import (
"math/big"

"github.com/getamis/alice/crypto/elliptic"
"github.com/getamis/alice/crypto/birkhoffinterpolation"
"github.com/getamis/alice/crypto/ecpointgrouplaw"
"github.com/getamis/alice/crypto/elliptic"
"github.com/getamis/alice/crypto/tss"
"github.com/getamis/alice/crypto/tss/addshare"
"github.com/getamis/alice/crypto/utils"
Expand Down
2 changes: 1 addition & 1 deletion crypto/tss/addshare/newpeer/1_result_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ package newpeer
import (
"math/big"

"github.com/getamis/alice/crypto/elliptic"
"github.com/getamis/alice/crypto/ecpointgrouplaw"
"github.com/getamis/alice/crypto/elliptic"
"github.com/getamis/alice/crypto/tss"
"github.com/getamis/alice/crypto/tss/addshare"
"github.com/getamis/alice/crypto/utils"
Expand Down
2 changes: 1 addition & 1 deletion crypto/tss/dkg/2_verify_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ var _ = Describe("verify handler, negative cases", func() {
vh, ok := d.GetHandler().(*verifyHandler)
Expect(ok).Should(BeTrue())

vh.u0g = ecpointgrouplaw.NewBase(elliptic.NewEd25519())
vh.u0g = ecpointgrouplaw.NewBase(elliptic.NewSecp256k1())
h, err := vh.Finalize(log.Discard())
Expect(err).Should(Equal(ecpointgrouplaw.ErrDifferentCurve))
Expect(h).Should(BeNil())
Expand Down

0 comments on commit 287fe53

Please sign in to comment.