caesar

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Envelope

type Envelope interface {
	// get the recipient's authkey
	GetDest() string
}

type PrivateKey

type PrivateKey interface {
	ExtractShareKey(envelope Envelope) ([]byte, error)

	Sign(message []byte) ([]byte, error)

	GetAuthKey() (string, error)
}

type PublicKey

type PublicKey interface {
	NewEnvelope(shareKey []byte) (Envelope, error)

	Verify(message, sig []byte) bool

	GetAuthKey() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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