ens

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: MPL-2.0 Imports: 11 Imported by: 0

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

func NewVerifier

func NewVerifier(logger *zap.Logger) *ENSVerifier

func (*ENSVerifier) CheckBatch

func (m *ENSVerifier) CheckBatch(ensDetails []ENSDetails, rpcEndpoint, contractAddress string) (map[string]ENSResponse, error)

CheckBatch verifies that a registered ENS name matches the expected public key

Jump to

Keyboard shortcuts

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