singlesig

package
v1.1.18 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ed25519Signer

type Ed25519Signer struct{}

Ed25519Signer exposes the signing and verification functionalities from the ed25519 signature scheme

func (*Ed25519Signer) IsInterfaceNil

func (e *Ed25519Signer) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*Ed25519Signer) Sign

func (e *Ed25519Signer) Sign(private crypto.PrivateKey, msg []byte) ([]byte, error)

Sign will sign a message using ed25519 signature scheme

func (*Ed25519Signer) Verify

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

Verify verifies a signature using a single signature ed25519 scheme

Jump to

Keyboard shortcuts

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