ln

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package ln is a package that implement a signature proposed in the lightning network protocol, but not yet specified.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LNSigner

type LNSigner struct {
	// contains filtered or unexported fields
}

LNSigner is a struct that implement th Signer interface

func NewLNSigner

func NewLNSigner() *LNSigner

func (*LNSigner) SignMsg

func (self *LNSigner) SignMsg(msg *string) (*string, error)

SignMsg sign the message by following the lightning network rules, but it is not implemented because required to import the keys to sign the message.

func (*LNSigner) VerifyMsg

func (self *LNSigner) VerifyMsg(key *string, signature *string, msg *string) (bool, error)

VerifyMsg sign the message with the lightning network logics implemented in the most popular implementation

Jump to

Keyboard shortcuts

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