crypto

package
v0.0.0-...-a03cec1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSchemeNotExist = errors.New("scheme doesn't exist")

Functions

This section is empty.

Types

type Scheme

type Scheme interface {
	Verify(pubKey string, content string, signature string) bool
	Name() SchemeName
}

func CreateScheme

func CreateScheme(schemeName SchemeName) (Scheme, error)

type SchemeName

type SchemeName string
const Ed25519 SchemeName = "ed25519"
const Secp256k1 SchemeName = "secp256k1"
const Sr25519 SchemeName = "sr25519"

Jump to

Keyboard shortcuts

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