signer

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Verify

func Verify(pub sumuslib.PublicKey, message []byte, sig sumuslib.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 FromPK

func FromPK(b []byte) (*Signer, error)

FromPK makes keypair from prehashed private key

func New

func New() (*Signer, error)

New made from random keypair

func (*Signer) PrivateKey

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

PrivateKey of the signer

func (*Signer) PublicKey

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

PublicKey of the signer

func (*Signer) Sign

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

Sign message with a key

Directories

Path Synopsis
Package ed25519 implements the Ed25519 signature algorithm.
Package ed25519 implements the Ed25519 signature algorithm.

Jump to

Keyboard shortcuts

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