test

package
v0.0.0-...-1c741c1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const TxVersion = int32(2)

TxVersion is a default tx version

Variables

This section is empty.

Functions

func ExecuteScript

func ExecuteScript(pkScript []byte, tx *wire.MsgTx, amt int64) error

ExecuteScript runs given script

func NewRedeemTx

func NewRedeemTx(sourceTx *wire.MsgTx, index uint32) *wire.MsgTx

NewRedeemTx creates a redeem tx using a given source tx

func NewSourceTx

func NewSourceTx() *wire.MsgTx

NewSourceTx creates a transaction that has a dummy txin.

func RandAddress

func RandAddress() *btcutil.AddressWitnessPubKeyHash

func RandKeys

func RandKeys() (*btcec.PrivateKey, *btcec.PublicKey)

RandKeys generates random key pairs for testing

Types

This section is empty.

Jump to

Keyboard shortcuts

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