singlesig

package
v1.0.93 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlsSingleSigner

type BlsSingleSigner struct {
}

BlsSingleSigner is a SingleSigner implementation that uses a BLS signature scheme

func NewBlsSigner

func NewBlsSigner() *BlsSingleSigner

NewBlsSigner creates a BLS single signer instance

func (*BlsSingleSigner) IsInterfaceNil

func (s *BlsSingleSigner) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*BlsSingleSigner) Sign

func (s *BlsSingleSigner) Sign(private crypto.PrivateKey, msg []byte) ([]byte, error)

Sign Signs a message using a single signature BLS scheme

func (*BlsSingleSigner) Verify

func (s *BlsSingleSigner) Verify(public crypto.PublicKey, msg []byte, sig []byte) error

Verify verifies a signature using a single signature BLS scheme

Jump to

Keyboard shortcuts

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