key

package
v0.0.0-...-8a69d85 Latest Latest
Warning

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

Go to latest
Published: May 25, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate() (public Public, private Private)

Types

type Private

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

func ParsePrivate

func ParsePrivate(str string) (Private, error)

func (*Private) Ed25519

func (p *Private) Ed25519() ed25519.PrivateKey

func (*Private) Public

func (p *Private) Public() string

func (*Private) Sign

func (p *Private) Sign(message []byte) []byte

func (*Private) String

func (p *Private) String() string

type Public

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

func ParsePublic

func ParsePublic(str string) (Public, error)

func (*Public) Ed25519

func (p *Public) Ed25519() ed25519.PublicKey

func (*Public) String

func (p *Public) String() string

func (*Public) Verify

func (p *Public) Verify(message, sig []byte) bool

Jump to

Keyboard shortcuts

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