Documentation ¶
Index ¶
- Variables
- func NewOutPoint(fundingTxID []byte, index uint32) (*wire.OutPoint, error)
- func NewOutPointFromString(outpoint string) (*wire.OutPoint, error)
- func VerifyMessage(message []byte, signature string) (*btcec.PublicKey, error)
- type Channel
- type Client
- type CustomMessage
- type CustomMsgClient
- type GetChannelResult
- type GetInfoResult
- type OpenChannelRequest
- type ShortChannelID
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidSignature = fmt.Errorf("invalid signature")
View Source
var SignedMsgPrefix = []byte("Lightning Signed Message:")
Functions ¶
func VerifyMessage ¶
Types ¶
type Channel ¶
type Channel struct { AliasScid *ShortChannelID ConfirmedScid *ShortChannelID ChannelPoint *wire.OutPoint PeerId []byte }
type Client ¶
type Client interface { GetInfo() (*GetInfoResult, error) IsConnected(destination []byte) (bool, error) OpenChannel(req *OpenChannelRequest) (*wire.OutPoint, error) GetChannel(peerID []byte, channelPoint wire.OutPoint) (*GetChannelResult, error) GetPeerId(scid *ShortChannelID) ([]byte, error) GetClosedChannels(nodeID string, channelPoints map[string]uint64) (map[string]uint64, error) WaitOnline(peerID []byte, deadline time.Time) error WaitChannelActive(peerID []byte, deadline time.Time) error ListChannels() ([]*Channel, error) }
type CustomMessage ¶
type CustomMsgClient ¶
type CustomMsgClient interface { Recv() (*CustomMessage, error) Send(*CustomMessage) error }
type GetChannelResult ¶
type GetChannelResult struct { AliasScid *ShortChannelID ConfirmedScid *ShortChannelID HtlcMinimumMsat uint64 }
type GetInfoResult ¶
type OpenChannelRequest ¶
type ShortChannelID ¶
type ShortChannelID uint64
func NewShortChannelIDFromString ¶
func NewShortChannelIDFromString(channelID string) (*ShortChannelID, error)
func (*ShortChannelID) ToString ¶
func (c *ShortChannelID) ToString() string
Click to show internal directories.
Click to hide internal directories.