github.com/status-im/status-go@v1.1.0/eth-node/types/ens/ens.go (about) 1 package enstypes 2 3 import ( 4 "crypto/ecdsa" 5 6 "github.com/ethereum/go-ethereum/common" 7 ) 8 9 type ENSVerifier interface { 10 // CheckBatch verifies that a registered ENS name matches the expected public key 11 CheckBatch(ensDetails []ENSDetails, rpcEndpoint, contractAddress string) (map[string]ENSResponse, error) 12 ReverseResolve(address common.Address, rpcEndpoint string) (string, error) 13 } 14 15 type ENSDetails struct { 16 Name string `json:"name"` 17 PublicKeyString string `json:"publicKey"` 18 } 19 20 type ENSResponse struct { 21 Name string `json:"name"` 22 Verified bool `json:"verified"` 23 VerifiedAt int64 `json:"verifiedAt"` 24 Error error `json:"error"` 25 PublicKey *ecdsa.PublicKey `json:"-"` 26 PublicKeyString string `json:"publicKey"` 27 }