singlesig

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 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 Secp256k1Signer

type Secp256k1Signer struct {
}

Secp256k1Signer exposes the signing and verification for ecdsa signature scheme

func (*Secp256k1Signer) IsInterfaceNil

func (s *Secp256k1Signer) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*Secp256k1Signer) Sign

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

Sign is used to sign a message

func (*Secp256k1Signer) Verify

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

Verify is used to verify a signed message

Jump to

Keyboard shortcuts

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