signer

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 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 FromBytes added in v1.1.0

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

FromBytes 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