bctest

package
v0.0.0-...-8b8382b Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: AGPL-3.0 Imports: 10 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(*legacy.Tx)) *legacy.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