Versions in this module Expand all Collapse all v0 v0.0.2 Oct 3, 2016 Changes in this version + type LNAdr struct + Base58Adr btcutil.Address + LnID [16]byte + NetAddr *net.TCPAddr + PubKey *btcec.PublicKey + func LnAddrFromString(encodedAddr string, netParams *chaincfg.Params) (*LNAdr, error) + func NewLnAdr(addr *net.TCPAddr, pubkey *btcec.PublicKey, net *chaincfg.Params) (*LNAdr, error) + func (l *LNAdr) Deserialize(s []byte) error + func (l *LNAdr) String() string + type LNDConn struct + Authed bool + Conn net.Conn + PbxIncoming chan []byte + PbxOutgoing chan []byte + RemoteLNId [16]byte + RemotePub *btcec.PublicKey + ViaPbx bool + func NewConn(conn net.Conn) *LNDConn + func (c *LNDConn) Close() error + func (c *LNDConn) Dial(myId *btcec.PrivateKey, address string, remoteId []byte) error + func (c *LNDConn) LocalAddr() net.Addr + func (c *LNDConn) Read(b []byte) (n int, err error) + func (c *LNDConn) RemoteAddr() net.Addr + func (c *LNDConn) SetDeadline(t time.Time) error + func (c *LNDConn) SetReadDeadline(t time.Time) error + func (c *LNDConn) SetWriteDeadline(t time.Time) error + func (c *LNDConn) Write(b []byte) (n int, err error) + type Listener struct + func NewListener(localPriv *btcec.PrivateKey, listenAddr string) (*Listener, error) + func (l *Listener) Accept() (c net.Conn, err error) + func (l *Listener) Addr() net.Addr + func (l *Listener) Close() error