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: 10 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 struct {
	// contains filtered or unexported fields
}

func New

func New(logger log.Logger) *Utilities

func (*Utilities) ECRecover

func (u *Utilities) ECRecover(data, sig []byte) (ethcommon.Address, error)

func (*Utilities) Verify

func (u *Utilities) Verify(pubKey, data, sig []byte, algo *entities.Algorithm) error

func (*Utilities) VerifyMessage

func (u *Utilities) VerifyMessage(addr ethcommon.Address, data, sig []byte) error

func (*Utilities) VerifyTypedData

func (u *Utilities) VerifyTypedData(addr ethcommon.Address, typedData *core.TypedData, sig []byte) error

Jump to

Keyboard shortcuts

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