keypairgen

package
v0.0.0-...-55f7a6b Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	Source Source
}

Generator generates new keys with the underlying source. The underlying source defaults to the RandomSource if not specified.

func (*Generator) Generate

func (g *Generator) Generate() (*keypair.Full, error)

Generate returns a new key using the underlying source.

type RandomSource

type RandomSource struct{}

RandomSource provides new keys that are randomly generated using the keypair.Random function.

func (RandomSource) Generate

func (RandomSource) Generate() (*keypair.Full, error)

Generated returns a new key using keypair.Random.

type Source

type Source interface {
	Generate() (*keypair.Full, error)
}

Source provides keys.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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