Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 *secp256k1.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 chainhash 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 ¶
func (n *NodeSigner) SignMessage(pubKey *secp256k1.PublicKey, msg []byte) (*secp256k1.Signature, error)
SignMessage signs a chainhash 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.