Skip to content

Commit

Permalink
Removed LittleEndian() from vrfSigner interface
Browse files Browse the repository at this point in the history
  • Loading branch information
poszu committed Oct 17, 2023
1 parent 7821cd7 commit cf8ad8b
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 84 deletions.
1 change: 0 additions & 1 deletion beacon/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ type layerClock interface {
type vrfSigner interface {
Sign(msg []byte) types.VrfSignature
NodeID() types.NodeID
LittleEndian() bool
}

type vrfVerifier interface {
Expand Down
38 changes: 0 additions & 38 deletions beacon/mocks.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion beacon/weakcoin/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
type vrfSigner interface {
Sign(msg []byte) types.VrfSignature
NodeID() types.NodeID
LittleEndian() bool
}

type vrfVerifier interface {
Expand Down
38 changes: 0 additions & 38 deletions beacon/weakcoin/mocks.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion beacon/weakcoin/weak_coin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ func staticSigner(tb testing.TB, ctrl *gomock.Controller, nodeId types.NodeID, s
signer := weakcoin.NewMockvrfSigner(ctrl)
signer.EXPECT().Sign(gomock.Any()).Return(sig).AnyTimes()
signer.EXPECT().NodeID().Return(nodeId).AnyTimes()
signer.EXPECT().LittleEndian().Return(true).AnyTimes()
return signer
}

Expand Down
5 changes: 0 additions & 5 deletions signing/vrf.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ func (s VRFSigner) PublicKey() *PublicKey {
return NewPublicKey(s.nodeID.Bytes())
}

// LittleEndian indicates whether byte order in a signature is little-endian.
func (s VRFSigner) LittleEndian() bool {
return true
}

type VRFVerifier func(types.NodeID, []byte, types.VrfSignature) bool

func NewVRFVerifier() VRFVerifier {
Expand Down

0 comments on commit cf8ad8b

Please sign in to comment.