crypto

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SignatureSize  = ed25519.SignatureSize
	PublicKeySize  = ed25519.PublicKeySize
	PrivateKeySize = ed25519.PrivateKeySize
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Signature

type Signature []byte

type Signer

type Signer struct {
	// Do not use this outside of Marshalling!
	Private ed25519.PrivateKey
	Public  ed25519.PublicKey
}

func (*Signer) Generate

func (b *Signer) Generate() *Signer

func (*Signer) Sign

func (b *Signer) Sign(data []byte) (Signature, error)

func (*Signer) Verify

func (b *Signer) Verify(data []byte, signature Signature) bool

Jump to

Keyboard shortcuts

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