rpc

package
v0.0.0-...-2bfee4e Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: ISC Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChanPointFundingTxid

func GetChanPointFundingTxid(chanPoint *lnrpc.ChannelPoint) (*chainhash.Hash, error)

GetChanPointFundingTxid returns the given channel point's funding txid in raw bytes.

Types

type NodeID

type NodeID [33]byte

NodeID is an LN node ID.

func (*NodeID) FromString

func (u *NodeID) FromString(s string) error

FromString decodes s into an NodeID. s must contain an hex-encoded ID of the correct length.

func (NodeID) MarshalJSON

func (u NodeID) MarshalJSON() ([]byte, error)

MarshalJSON marshals the id into a json string.

func (NodeID) String

func (u NodeID) String() string

String returns the hex encoding of the NodeID.

func (*NodeID) UnmarshalJSON

func (u *NodeID) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the json representation of a NodeID.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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