testutil

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PeerAddrLocal   = "localhost:18886"
	EsploraUrlLocal = "http://localhost:3001"
)

Functions

func BlindTransaction

func BlindTransaction(
	p *pset.Pset,
	inBlindKeys [][]byte,
	outBlindKeys [][]byte,
	issuanceBlindKeys []pset.IssuanceBlindingPrivateKeys,
) error

func BlindTransactionByIndex

func BlindTransactionByIndex(
	p *pset.Pset,
	inBlindKeys [][]byte,
	outBlindKeysMap map[int][]byte,
	issuanceBlindKeys []pset.IssuanceBlindingPrivateKeys,
) error

func CreateTx

func CreateTx() (string, string, error)

func Faucet

func Faucet(address string) (string, error)

func GenerateMasterPrivateKey

func GenerateMasterPrivateKey() (*hdkeychain.ExtendedKey, error)

func GenerateToAddr

func GenerateToAddr(addr string) error

func GetTransactionHex

func GetTransactionHex(txHash string) (string, error)

func H2b

func H2b(str string) []byte

func MakeNigiriTestServices

func MakeNigiriTestServices(
	peerUrl string,
	esploraUrl string,
	network string,
) (node.NodeService, scanner.ScannerService,
	<-chan scanner.Report)

func OutputCommand

func OutputCommand(name string, arg ...string) ([]byte, error)

func RunCommand

func RunCommand(name string, arg ...string) error

func RunCommandDetached

func RunCommandDetached(name string, arg ...string) (*exec.Cmd, error)

func SendToAddr

func SendToAddr(addr string) error

func SignTransaction

func SignTransaction(
	p *pset.Pset,
	privKeys []*btcec.PrivateKey,
	scripts [][]byte,
	forWitness bool,
	opts *signOpts,
) error

func Unspents

func Unspents(address string) ([]map[string]interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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