crypto

package
v0.0.0-...-f6bc33c Latest Latest
Warning

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

Go to latest
Published: Apr 28, 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 VerifyZetaSignature

func VerifyZetaSignature(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