bctest

package
v0.0.0-...-ff6bfbe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmptyTx

func EmptyTx(t testing.TB, blockID bc.Hash, exp time.Time) *bc.Tx

EmptyTx produces a minimal valid transaction from "nonce" and "finalize". The supplied blockID and exp are for computing the nonce. Some random bytes are mixed in as well, so the resulting tx is always unique.

func WithCommitments

func WithCommitments(txs []*bc.Tx) []*bc.CommitmentsTx

WithCommitments takes in a slice of *bc.Tx and wraps each of them with their commitments, returning a slice of *bc.CommitmentsTx

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL