Documentation
¶
Index ¶
- func GetAmount(value string) btcutil.Amount
- func GetBtcClient(address string, chainParams *chaincfg.Params) *brpc.Bitcoind
- func GetRawAddress(client *brpc.Bitcoind) *btcutil.AddressPubKeyHash
- func ScheduleBlockGeneration(cli brpc.Bitcoind, interval time.Duration) chan bool
- func StopBlockGeneration(stop chan bool)
- type HTLContract
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRawAddress ¶ added in v0.5.0
func GetRawAddress(client *brpc.Bitcoind) *btcutil.AddressPubKeyHash
func ScheduleBlockGeneration ¶
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) ToMessage ¶ added in v0.5.0
func (h *HTLContract) ToMessage() []byte
Click to show internal directories.
Click to hide internal directories.