signer

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Verify

func Verify(pub mint.PublicKey, message []byte, sig mint.Signature) error

Verify a message with a public key of a signer

Types

type Signer

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

Signer data

func FromPrivateKey

func FromPrivateKey(k mint.PrivateKey) *Signer

FromPrivateKey makes keypair from prehashed private key

func New

func New() (*Signer, error)

New made from random keypair

func (*Signer) PrivateKey

func (s *Signer) PrivateKey() mint.PrivateKey

PrivateKey of the signer

func (*Signer) PublicKey

func (s *Signer) PublicKey() mint.PublicKey

PublicKey of the signer

func (*Signer) Sign

func (s *Signer) Sign(message []byte) mint.Signature

Sign message with a key

Jump to

Keyboard shortcuts

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