Documentation ¶
Index ¶
- func EncodingAndRoot() tests.SpecTest
- func InvalidMsg() tests.SpecTest
- func MessageSigner0() tests.SpecTest
- func NoMsgs() tests.SpecTest
- func PartialRootValid() tests.SpecTest
- func PartialSigValid() tests.SpecTest
- func SigValid() tests.SpecTest
- func SignedMsgSigner0() tests.SpecTest
- func ValidContributionProofMetaData() tests.SpecTest
- type MsgSpecTest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodingAndRoot ¶ added in v0.2.7
EncodingAndRoot tests SignedPartialSignatureMessage encoding + root
func InvalidMsg ¶ added in v0.2.7
InvalidMsg tests a signed msg with 1 invalid message
func MessageSigner0 ¶ added in v0.2.7
MessageSigner0 tests PartialSignatureMessage signer == 0
func PartialRootValid ¶ added in v0.2.7
PartialRootValid tests PostConsensusMessage root == 32 bytes
func PartialSigValid ¶ added in v0.2.7
PartialSigValid tests PostConsensusMessage sig == 96 bytes
func SignedMsgSigner0 ¶ added in v0.2.7
SignedMsgSigner0 tests SignedPartialSignatureMessage signer == 0
func ValidContributionProofMetaData ¶ added in v0.2.7
ValidContributionProofMetaData tests a PartialSignatureMessage for contribution proof metadata valid
Types ¶
type MsgSpecTest ¶ added in v0.2.7
type MsgSpecTest struct { Name string Messages []*types.SignedPartialSignatureMessage EncodedMessages [][]byte ExpectedRoots [][32]byte ExpectedError string }
func (*MsgSpecTest) GetPostState ¶ added in v0.3.1
func (tests *MsgSpecTest) GetPostState() (interface{}, error)
func (*MsgSpecTest) Run ¶ added in v0.2.7
func (test *MsgSpecTest) Run(t *testing.T)
func (*MsgSpecTest) TestName ¶ added in v0.2.7
func (test *MsgSpecTest) TestName() string
Click to show internal directories.
Click to hide internal directories.