Versions in this module Expand all Collapse all v0 v0.0.2 Oct 3, 2016 Changes in this version + type BtcWallet struct + func New(cfg *Config) (*BtcWallet, error) + func (b *BtcWallet) ComputeInputScript(tx *wire.MsgTx, signDesc *lnwallet.SignDescriptor) (*lnwallet.InputScript, error) + func (b *BtcWallet) ConfirmedBalance(confs int32, witness bool) (btcutil.Amount, error) + func (b *BtcWallet) FetchInputInfo(prevOut *wire.OutPoint) (*wire.TxOut, error) + func (b *BtcWallet) FetchRootKey() (*btcec.PrivateKey, error) + func (b *BtcWallet) GetCurrentHeight() (int32, error) + func (b *BtcWallet) GetPrivKey(a btcutil.Address) (*btcec.PrivateKey, error) + func (b *BtcWallet) GetTransaction(txid *wire.ShaHash) (*wire.MsgTx, error) + func (b *BtcWallet) GetUtxo(txid *wire.ShaHash, index uint32) (*wire.TxOut, error) + func (b *BtcWallet) ListUnspentWitness(minConfs int32) ([]*lnwallet.Utxo, error) + func (b *BtcWallet) LockOutpoint(o wire.OutPoint) + func (b *BtcWallet) NewAddress(t lnwallet.AddressType, change bool) (btcutil.Address, error) + func (b *BtcWallet) NewRawKey() (*btcec.PublicKey, error) + func (b *BtcWallet) PublishTransaction(tx *wire.MsgTx) error + func (b *BtcWallet) SendOutputs(outputs []*wire.TxOut) (*wire.ShaHash, error) + func (b *BtcWallet) SignOutputRaw(tx *wire.MsgTx, signDesc *lnwallet.SignDescriptor) ([]byte, error) + func (b *BtcWallet) Start() error + func (b *BtcWallet) Stop() error + func (b *BtcWallet) UnlockOutpoint(o wire.OutPoint) + type Config struct + CACert []byte + DataDir string + DebugLevel string + HdSeed []byte + LogDir string + NetParams *chaincfg.Params + PrivatePass []byte + PublicPass []byte + RPCCert string + RPCKey string + RpcHost string + RpcNoTLS bool + RpcPass string + RpcUser string