signature

package
v0.24.2 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SigLength         = 65
	SigRecoveryOffset = 27
)

Variables

This section is empty.

Functions

func RecoverAddress

func RecoverAddress(hash, signature []byte) (*gethcommon.Address, error)

func RecoverPubKey

func RecoverPubKey(hash, signature []byte) (*ecdsa.PublicKey, error)

func RecoverPubKeyBytes

func RecoverPubKeyBytes(hash, signature []byte) ([]byte, error)

func Sign

func Sign(messageHash []byte, key *ecdsa.PrivateKey) ([]byte, error)

func VerifySignature

func VerifySignature(pubKey *ecdsa.PublicKey, hash, signature []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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