sign

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: 0 Imported by: 0

Documentation

Overview

Package sign give the API to implement a custom signer that is able to sign and verify a sequence of bytes or a string.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keys

type Keys interface{}

Keys tagger interface to store the information about the key (if any) that are used to sign a message.

type Signer

type Signer interface {
	// SignMsg sign a string and return the result or an error
	SignMsg(msg *string) (*string, error)

	// VerifyMsg a signature with optional public key specified as parameter
	// or use some key stored inside the struct.
	VerifyMsg(signature *string) (bool, error)
}

Signer is a common interface that give the possibility to implement a signer and verify algorithm in pure go

Directories

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

Jump to

Keyboard shortcuts

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