Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableLog ¶
func DisableLog()
DisableLog disables all library log output. Logging output is disabled by by default until UseLogger is called.
Types ¶
type NodeSigner ¶
type NodeSigner struct {
// contains filtered or unexported fields
}
NodeSigner is an implementation of the MessageSigner interface backed by the identity private key of running lnd node.
func NewNodeSigner ¶
func NewNodeSigner(key *btcec.PrivateKey) *NodeSigner
NewNodeSigner creates a new instance of the NodeSigner backed by the target private key.
func (*NodeSigner) SignCompact ¶
func (n *NodeSigner) SignCompact(msg []byte) ([]byte, error)
SignCompact signs a double-sha256 digest of the msg parameter under the resident node's private key. The returned signature is a pubkey-recoverable signature.
func (*NodeSigner) SignDigestCompact ¶
func (n *NodeSigner) SignDigestCompact(hash []byte) ([]byte, error)
SignDigestCompact signs the provided message digest under the resident node's private key. The returned signature is a pubkey-recoverable signature.
func (*NodeSigner) SignMessage ¶
SignMessage signs a double-sha256 digest of the passed msg under the resident node's private key. If the target public key is _not_ the node's private key, then an error will be returned.