registrationutil

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserHash

func NewUserHash(salt string, userData ...string) string

Types

type Config

type Config struct {
	Title   string
	Salt1   string
	Salt2   []byte
	UhmAddr string
	Labels  []string
}

func (*Config) FromCid

func (cfg *Config) FromCid(rCfgCid string, is ipfs.Ipfs) error

func (Config) Marshal

func (cfg Config) Marshal() []byte

func (*Config) Unmarshal

func (cfg *Config) Unmarshal(m []byte) error

type RegistrationStores added in v0.3.0

type RegistrationStores struct {
	Is  ipfs.Ipfs
	Uhm crdt.IHashStore
}

func NewConfig

func NewConfig(title string, userDataset <-chan []string, userDataLabels []string, bAddr string) (string, *RegistrationStores, error)

func (*RegistrationStores) Close added in v0.3.0

func (rs *RegistrationStores) Close()

type UserIdentity

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

func NewUserIdentity

func NewUserIdentity(userHash string, pub evutil.IPubKey, priv evutil.IPriKey) *UserIdentity

func (*UserIdentity) FromString

func (ui *UserIdentity) FromString(addr string) error

func (UserIdentity) Marshal

func (ui UserIdentity) Marshal() []byte

func (UserIdentity) Private

func (ui UserIdentity) Private() evutil.IPriKey

func (UserIdentity) Public

func (ui UserIdentity) Public() evutil.IPubKey

func (UserIdentity) ToString

func (ui UserIdentity) ToString() string

func (*UserIdentity) Unmarshal

func (ui *UserIdentity) Unmarshal(m []byte) error

func (UserIdentity) UserHash

func (ui UserIdentity) UserHash() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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