crypto

package
v0.68.4 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAddressesDoesNotMatch = func(expected, recovered common.Address) error {
		return fmt.Errorf("addresses does not match, expected(%s) recovered(%s)", expected.Hex(), recovered.Hex())
	}
	ErrInvalidSignature    = errors.New("invalid signature")
	ErrEthInvalidSignature = errors.New("invalid ethereum signature")
)

Functions

func VerifyEthereumSignature

func VerifyEthereumSignature(message, signature []byte, hexAddress string) error

func VerifyVegaSignature

func VerifyVegaSignature(message, signature, pubkey []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