Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestVector ¶
type TestVector struct {
Kind string `json:"kind"`
SignatureContext string `json:"signature_context"`
Tx interface{} `json:"tx"`
SignedTx transaction.SignedTransaction `json:"signed_tx"`
EncodedTx []byte `json:"encoded_tx"`
EncodedSignedTx []byte `json:"encoded_signed_tx"`
Valid bool `json:"valid"`
SignerPrivateKey []byte `json:"signer_private_key"`
SignerPublicKey signature.PublicKey `json:"signer_public_key"`
}
TestVector is a staking message test vector.
func MakeTestVector ¶
func MakeTestVector(kind string, tx *transaction.Transaction) TestVector
MakeTestVector generates a new test vector from a transction.
func MakeTestVectorWithSigner ¶
func MakeTestVectorWithSigner(kind string, tx *transaction.Transaction, signer signature.Signer) TestVector
MakeTestVectorWithSigner generates a new test vector from a transction using a specific signer.
Click to show internal directories.
Click to hide internal directories.