bctest

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2018 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package bctest provides utilities for constructing blockchain data structures.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIssuanceTx

func NewIssuanceTx(tb testing.TB, initial bc.Hash, opts ...func(*types.Tx)) *types.Tx

NewIssuanceTx creates a new signed, issuance transaction issuing 100 units of a new asset to a garbage control program. The resulting transaction has one input and one output.

The asset issued is created from randomly-generated keys. The resulting transaction is finalized (signed with a TXSIGHASH commitment).

Types

This section is empty.

Jump to

Keyboard shortcuts

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