gcsecp256k1

package
v0.0.0-...-40b18d3 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.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 PubKey

type PubKey secp256k1.PubKey

func (*PubKey) Equal

func (k *PubKey) Equal(other gcrypto.PubKey) bool

func (*PubKey) PubKeyBytes

func (k *PubKey) PubKeyBytes() []byte

func (*PubKey) TypeName

func (k *PubKey) TypeName() string

func (*PubKey) Verify

func (k *PubKey) Verify(msg, sig []byte) bool

type Signer

type Signer struct {
	// contains filtered or unexported fields
}

func NewSigner

func NewSigner(priv secp256k1.PrivKey) Signer

func (Signer) PubKey

func (s Signer) PubKey() gcrypto.PubKey

func (Signer) Sign

func (s Signer) Sign(_ context.Context, input []byte) (signature []byte, err error)

Jump to

Keyboard shortcuts

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