easyecdsa

package
v0.0.0-...-3fab713 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type License

type License struct {
	Data []byte
	// Signature is the ASN.1 encoded signature of Data's sha256 hash digest.
	Signature []byte
}

License represents a license with some data and a hash.

func NewLicense

func NewLicense(privateKey *ecdsa.PrivateKey, data LicenseData) *License

func (*License) Verify

func (l *License) Verify(publicKey *ecdsa.PublicKey) (LicenseData, error)

type LicenseData

type LicenseData struct {
	Email string    `json:"email"`
	End   time.Time `json:"end"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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