signing

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SigningPackage

type SigningPackage struct {
	Public  *ecdsa.PublicKey
	Private *ecdsa.PrivateKey
}

func CreateSigningPackage

func CreateSigningPackage() (SigningPackage, error)

func DecodePrivateKey

func DecodePrivateKey(key string) (SigningPackage, error)

func (SigningPackage) MarshalPrivate

func (s SigningPackage) MarshalPrivate() (string, error)

func (SigningPackage) Sign

func (sp SigningPackage) Sign(input string) (string, error)

func (SigningPackage) Validate

func (sp SigningPackage) Validate(input string, signature string) bool

type SigningPackageInterface

type SigningPackageInterface interface {
	Sign(string) (string, error)
	Validate(string, string) bool
	MarshalPrivate() (string, error)
}

Jump to

Keyboard shortcuts

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