doid

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClassCNameLength int = 6
)

Variables

View Source
var (
	ErrReserved = errors.New("reserved")
)

Functions

func DOIDHash added in v0.2.0

func DOIDHash(doid string) types.Hash

func GetOwnerDOIDNames added in v0.2.0

func GetOwnerDOIDNames(tree *iavl.ImmutableTree, owner types.Address) ([][]byte, error)

func OwnerHash added in v0.2.0

func OwnerHash(owner types.Address) types.Hash

func OwnerStatePrefix added in v0.2.0

func OwnerStatePrefix() []byte

func UpdateOwnerDOIDNames added in v0.2.0

func UpdateOwnerDOIDNames(tree *iavl.MutableTree, owner types.Address, name string, add bool) error

func ValidateDoidName added in v0.2.0

func ValidateDoidName(s string, valid int) error

func ValidateDoidNameSignatrue added in v0.2.0

func ValidateDoidNameSignatrue(doidName string, singer types.Address, signature []byte) bool

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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