domain

package
v0.0.0-...-727b8d0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_domain_proto protoreflect.FileDescriptor

Functions

func NameFromMnemonics

func NameFromMnemonics(mnemonics string) ([]byte, error)

NameFromMnemonics ...

func PowHash

func PowHash(data []byte) []byte

PowHash ...

Types

type Address

type Address struct {
	PubKey []byte `protobuf:"bytes,1,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
	Nonce  uint64 `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// contains filtered or unexported fields
}

func (*Address) Descriptor deprecated

func (*Address) Descriptor() ([]byte, []int)

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetNonce

func (x *Address) GetNonce() uint64

func (*Address) GetPubKey

func (x *Address) GetPubKey() []byte

func (*Address) Mnemonics

func (a *Address) Mnemonics() (string, error)

Mnemonics of the Address

func (*Address) Name

func (a *Address) Name() ([]byte, error)

Name of a Address in Bytes

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect

func (x *Address) ProtoReflect() protoreflect.Message

func (*Address) Reset

func (x *Address) Reset()

func (*Address) String

func (x *Address) String() string

func (*Address) Verify

func (a *Address) Verify() error

Verify a Address

type Entry

type Entry struct {
	Address   *Address          `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	PubRSAKey []byte            `protobuf:"bytes,2,opt,name=pubRSAKey,proto3" json:"pubRSAKey,omitempty"`
	Values    map[string]string `` /* 153-byte string literal not displayed */
	Peers     []string          `protobuf:"bytes,4,rep,name=peers,proto3" json:"peers,omitempty"`
	Signature []byte            `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

func NewEntry

func NewEntry(privateAddress *PrivateAddress) (*Entry, error)

NewEntry ...

func (*Entry) Descriptor deprecated

func (*Entry) Descriptor() ([]byte, []int)

Deprecated: Use Entry.ProtoReflect.Descriptor instead.

func (*Entry) GetAddress

func (x *Entry) GetAddress() *Address

func (*Entry) GetPeers

func (x *Entry) GetPeers() []string

func (*Entry) GetPubRSAKey

func (x *Entry) GetPubRSAKey() []byte

func (*Entry) GetSignature

func (x *Entry) GetSignature() []byte

func (*Entry) GetValues

func (x *Entry) GetValues() map[string]string

func (*Entry) MarshalYAML

func (d *Entry) MarshalYAML() (interface{}, error)

MarshalYAML ...

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) ProtoReflect

func (x *Entry) ProtoReflect() protoreflect.Message

func (*Entry) Reset

func (x *Entry) Reset()

func (*Entry) Sign

func (d *Entry) Sign(privateAddress *PrivateAddress) error

Sign ...

func (*Entry) String

func (x *Entry) String() string

func (*Entry) UnmarshalYAML

func (d *Entry) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML ...

func (*Entry) Verify

func (d *Entry) Verify() (bool, error)

Verify ...

type PrivateAddress

type PrivateAddress struct {
	Address
	Alias         string
	PrivateKey    []byte
	PrivateRSAKey []byte
}

PrivateAddress ...

func NewPrivateAddress

func NewPrivateAddress(alias string) (*PrivateAddress, error)

NewPrivateAddress ...

func (*PrivateAddress) PublicRSAKey

func (a *PrivateAddress) PublicRSAKey() ([]byte, error)

PublicRSAKey ...

Jump to

Keyboard shortcuts

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