bitcoin

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAmount added in v0.5.0

func GetAmount(value string) btcutil.Amount

func GetBtcClient

func GetBtcClient(address string) *brpc.Bitcoind

func GetChaincfg added in v0.5.2

func GetChaincfg() *chaincfg.Params

func GetRawAddress added in v0.5.0

func GetRawAddress(client *brpc.Bitcoind) *btcutil.AddressPubKeyHash

func ScheduleBlockGeneration

func ScheduleBlockGeneration(cli brpc.Bitcoind, interval time.Duration) chan bool

func StopBlockGeneration

func StopBlockGeneration(stop chan bool)

Types

type HTLContract added in v0.5.0

type HTLContract struct {
	Contract   []byte `json:"contract"`
	ContractTx []byte `json:"contractTx"`
}

func (*HTLContract) Chain added in v0.7.0

func (h *HTLContract) Chain() data.ChainType

func (*HTLContract) FromBytes added in v0.7.0

func (h *HTLContract) FromBytes(message []byte)

func (*HTLContract) FromMsgTx added in v0.7.0

func (h *HTLContract) FromMsgTx(contract []byte, contractTx *wire.MsgTx)

func (HTLContract) GetMsgTx added in v0.7.0

func (h HTLContract) GetMsgTx() *wire.MsgTx

func (*HTLContract) ToBytes added in v0.7.0

func (h *HTLContract) ToBytes() []byte

func (*HTLContract) ToKey added in v0.5.2

func (h *HTLContract) ToKey() []byte

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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