nns

package
v0.51.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FSChain

type FSChain interface {
	HasUserInNNS(name string, addr util.Uint160) (bool, error)
}

FSChain provides base non-contract functionality of the FS chain required for NNS name resolution.

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

Resolver is an NNS name resolver.

func NewResolver

func NewResolver(fs FSChain) *Resolver

NewResolver creates a new NNS Resolver with given FSChain.

func (Resolver) HasUser

func (r Resolver) HasUser(name string, userID user.ID) (bool, error)

HasUser checks whether the user with given userID is registered in NNS under the specified name.

func (Resolver) PurgeCache

func (r Resolver) PurgeCache()

PurgeCache clears the internal cache of resolved names.

Jump to

Keyboard shortcuts

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