bitcoin

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2018 License: Apache-2.0 Imports: 12 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 wire.MsgTx `json:"contractTx"`
}

func GetHTLCFromMessage added in v0.5.0

func GetHTLCFromMessage(message []byte) *HTLContract

func (*HTLContract) ToKey added in v0.5.2

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

func (*HTLContract) ToMessage added in v0.5.0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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