Documentation ¶
Index ¶
- func AssertEqual(a, b any)
- func NewRandomBlock(t *testing.T, height uint32, prevBlockHash types.Hash) *core.Block
- func NewRandomBlockWithSignature(t *testing.T, pk crypto.PrivateKey, height uint32, prevHash types.Hash) *core.Block
- func NewRandomTransaction(size int) *core.Transaction
- func NewRandomTransactionWithSignature(t *testing.T, privKey crypto.PrivateKey, size int) *core.Transaction
- func RandomBytes(size int) []byte
- func RandomHash() types.Hash
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEqual ¶
func AssertEqual(a, b any)
func NewRandomBlock ¶
func NewRandomTransaction ¶
func NewRandomTransaction(size int) *core.Transaction
NewRandomTransaction return a new random transaction whithout signature.
func NewRandomTransactionWithSignature ¶
func NewRandomTransactionWithSignature(t *testing.T, privKey crypto.PrivateKey, size int) *core.Transaction
func RandomBytes ¶
func RandomHash ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.