utils

package
v0.0.0-...-f5bbbf4 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 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 Utilities

type Utilities interface {
	// Verify verifies the signature belongs to the corresponding key
	Verify(pubKey, data, sig []byte, algo *entities.Algorithm) error

	// ECRecover returns the Ethereum address from a signature and data
	ECRecover(data, sig []byte) (common.Address, error)

	// VerifyMessage verifies that a message signature belongs to a given address
	VerifyMessage(addr common.Address, data, sig []byte) error

	// VerifyTypedData verifies that a typed data signature belongs to a given address
	VerifyTypedData(addr common.Address, typedData *core.TypedData, sig []byte) error
}

Directories

Path Synopsis
api
service

Jump to

Keyboard shortcuts

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