pkg

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: CC0-1.0, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type B

type B = []byte

type S

type S = string

type Signer

type Signer interface {
	// InitSec initialises the secret (signing) key from the raw bytes, and also
	// derives the public key because it can.
	InitSec(sec B) (err error)
	// InitPub initializes the public (verification) key from raw bytes.
	InitPub(pub B) (err error)
	// Pub returns the public key bytes.
	Pub() B
	// Sign creates a signature using the stored secret key.
	Sign(msg B) (sig B, err error)
	// Verify checks a message hash and signature match the stored public key.
	Verify(msg, sig B) (valid bool, err error)
	// Zero wipes the secret key to prevent memory leaks.
	Zero()
}

Directories

Path Synopsis
Package atomic provides simple wrappers around numerics to enforce atomic access.
Package atomic provides simple wrappers around numerics to enforce atomic access.
internal/gen-atomicint
gen-atomicint generates an atomic wrapper around an integer type.
gen-atomicint generates an atomic wrapper around an integer type.
internal/gen-atomicwrapper
gen-atomicwrapper generates wrapper types around other atomic types.
gen-atomicwrapper generates wrapper types around other atomic types.
Package codec defines interfaces for use with both pointer and reference types that allows proper integration with zero-copy and allocation pools
Package codec defines interfaces for use with both pointer and reference types that allows proper integration with zero-copy and allocation pools
Package context is a set of shorter names for the very stuttery context library.
Package context is a set of shorter names for the very stuttery context library.
gen

Jump to

Keyboard shortcuts

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