Documentation ¶
Index ¶
- type EncodingTest
- type MsgSpecTest
- func InconsistentSignedMessage() *MsgSpecTest
- func InvalidMsg() *MsgSpecTest
- func MessageSigner0() *MsgSpecTest
- func NoMsgs() *MsgSpecTest
- func PartialRootValid() *MsgSpecTest
- func PartialSigValid() *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 EncodingTest ¶
func (*EncodingTest) Run ¶
func (test *EncodingTest) Run(t *testing.T)
func (*EncodingTest) TestName ¶
func (test *EncodingTest) TestName() string
type MsgSpecTest ¶ added in v0.3.5
type MsgSpecTest struct { Name string Messages []*types.SignedPartialSignatureMessage EncodedMessages [][]byte ExpectedRoots [][32]byte ExpectedError string }
func InconsistentSignedMessage ¶
func InconsistentSignedMessage() *MsgSpecTest
InconsistentSignedMessage tests SignedPartialSignatureMessage where the signer is not the same as the signer in messages
func InvalidMsg ¶ added in v0.3.5
func InvalidMsg() *MsgSpecTest
InvalidMsg tests a signed msg with 1 invalid message
func MessageSigner0 ¶ added in v0.3.5
func MessageSigner0() *MsgSpecTest
MessageSigner0 tests PartialSignatureMessage signer == 0
func PartialRootValid ¶ added in v0.3.5
func PartialRootValid() *MsgSpecTest
PartialRootValid tests PostConsensusMessage root == 32 bytes
func PartialSigValid ¶ added in v0.3.5
func PartialSigValid() *MsgSpecTest
PartialSigValid tests PostConsensusMessage sig == 96 bytes
func SigValid ¶ added in v0.3.5
func SigValid() *MsgSpecTest
SigValid tests SignedPostConsensusMessage sig == 96 bytes
func SignedMsgSigner0 ¶ added in v0.3.5
func SignedMsgSigner0() *MsgSpecTest
SignedMsgSigner0 tests SignedPartialSignatureMessage signer == 0
func ValidContributionProofMetaData ¶ added in v0.3.5
func ValidContributionProofMetaData() *MsgSpecTest
ValidContributionProofMetaData tests a PartialSignatureMessage for contribution proof metadata valid
func (*MsgSpecTest) GetPostState ¶ added in v0.3.5
func (tests *MsgSpecTest) GetPostState() (interface{}, error)
func (*MsgSpecTest) Run ¶ added in v0.3.5
func (test *MsgSpecTest) Run(t *testing.T)
func (*MsgSpecTest) TestName ¶ added in v0.3.5
func (test *MsgSpecTest) TestName() string
Click to show internal directories.
Click to hide internal directories.