keys

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ED25519_PUBLIC_KEY_SIZE_BYTES  = 32
	ED25519_PRIVATE_KEY_SIZE_BYTES = 64
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Ed25519KeyPair

type Ed25519KeyPair struct {
	// contains filtered or unexported fields
}

func GenerateEd25519Key

func GenerateEd25519Key() (*Ed25519KeyPair, error)

func NewEd25519KeyPair

func NewEd25519KeyPair(publicKey primitives.Ed25519PublicKey, privateKey primitives.Ed25519PrivateKey) *Ed25519KeyPair

func (*Ed25519KeyPair) PrivateKey

func (*Ed25519KeyPair) PrivateKeyHex

func (k *Ed25519KeyPair) PrivateKeyHex() string

func (*Ed25519KeyPair) PublicKey

func (*Ed25519KeyPair) PublicKeyHex

func (k *Ed25519KeyPair) PublicKeyHex() string

Jump to

Keyboard shortcuts

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