enstypes

package
v0.184.44 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MPL-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ENSDetails

type ENSDetails struct {
	Name            string `json:"name"`
	PublicKeyString string `json:"publicKey"`
}

type ENSResponse

type ENSResponse struct {
	Name            string           `json:"name"`
	Verified        bool             `json:"verified"`
	VerifiedAt      int64            `json:"verifiedAt"`
	Error           error            `json:"error"`
	PublicKey       *ecdsa.PublicKey `json:"-"`
	PublicKeyString string           `json:"publicKey"`
}

type ENSVerifier

type ENSVerifier interface {
	// CheckBatch verifies that a registered ENS name matches the expected public key
	CheckBatch(ensDetails []ENSDetails, rpcEndpoint, contractAddress string) (map[string]ENSResponse, error)
	ReverseResolve(address common.Address, rpcEndpoint string) (string, error)
}

Jump to

Keyboard shortcuts

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