Documentation ¶
Index ¶
- type MsgSpecTest
- func EncodingAndRoot() *MsgSpecTest
- func InvalidMsg() *MsgSpecTest
- func MessageSigner0() *MsgSpecTest
- func NoMsgs() *MsgSpecTest
- func PartialRootTooLong() *MsgSpecTest
- func PartialRootTooShort() *MsgSpecTest
- func PartialRootValid() *MsgSpecTest
- func PartialSigTooLong() *MsgSpecTest
- func PartialSigTooShort() *MsgSpecTest
- func PartialSigValid() *MsgSpecTest
- func SigTooLong() *MsgSpecTest
- func SigTooShort() *MsgSpecTest
- func SigValid() *MsgSpecTest
- func SignedMsgSigner0() *MsgSpecTest
- func ValidContributionProofMetaData() *MsgSpecTest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MsgSpecTest ¶
type MsgSpecTest struct { Name string Messages []*ssv.SignedPartialSignatureMessage EncodedMessages [][]byte ExpectedRoots [][]byte ExpectedError string }
func EncodingAndRoot ¶
func EncodingAndRoot() *MsgSpecTest
EncodingAndRoot tests SignedPartialSignatureMessage encoding + root
func InvalidMsg ¶
func InvalidMsg() *MsgSpecTest
InvalidMsg tests a signed msg with 1 invalid message
func MessageSigner0 ¶
func MessageSigner0() *MsgSpecTest
MessageSigner0 tests PartialSignatureMessage signer == 0
func PartialRootTooLong ¶
func PartialRootTooLong() *MsgSpecTest
PartialRootTooLong tests PostConsensusMessage root > 32 bytes
func PartialRootTooShort ¶
func PartialRootTooShort() *MsgSpecTest
PartialRootTooShort tests PostConsensusMessage root < 32 bytes
func PartialRootValid ¶
func PartialRootValid() *MsgSpecTest
PartialRootValid tests PostConsensusMessage root == 32 bytes
func PartialSigTooLong ¶
func PartialSigTooLong() *MsgSpecTest
PartialSigTooLong tests PostConsensusMessage sig > 96 bytes
func PartialSigTooShort ¶
func PartialSigTooShort() *MsgSpecTest
PartialSigTooShort tests PostConsensusMessage sig < 96 bytes
func PartialSigValid ¶
func PartialSigValid() *MsgSpecTest
PartialSigValid tests PostConsensusMessage sig == 96 bytes
func SigTooLong ¶
func SigTooLong() *MsgSpecTest
SigTooLong tests SignedPostConsensusMessage sig > 96 bytes
func SigTooShort ¶
func SigTooShort() *MsgSpecTest
SigTooShort tests SignedPostConsensusMessage sig < 96 bytes
func SigValid ¶
func SigValid() *MsgSpecTest
SigValid tests SignedPostConsensusMessage sig == 96 bytes
func SignedMsgSigner0 ¶
func SignedMsgSigner0() *MsgSpecTest
SignedMsgSigner0 tests SignedPartialSignatureMessage signer == 0
func ValidContributionProofMetaData ¶
func ValidContributionProofMetaData() *MsgSpecTest
ValidContributionProofMetaData tests a PartialSignatureMessage for contribution proof metadata valid
func (*MsgSpecTest) Run ¶
func (test *MsgSpecTest) Run(t *testing.T)
func (*MsgSpecTest) TestName ¶
func (test *MsgSpecTest) TestName() string
Source Files ¶
- encoding_and_root.go
- invalid_msg.go
- msg_signer_zero.go
- no_msgs.go
- partial_root_too_long.go
- partial_root_too_short.go
- partial_root_valid.go
- partial_sig_too_long.go
- partial_sig_too_short.go
- partial_sig_valid.go
- sig_too_long.go
- sig_too_short.go
- sig_valid.go
- signed_msg_signer_zero.go
- test.go
- valid_contribution_proof_metadata.go