Documentation ¶
Index ¶
- Variables
- func NameFromMnemonics(mnemonics string) ([]byte, error)
- func PowHash(data []byte) []byte
- type Address
- func (*Address) Descriptor() ([]byte, []int)deprecated
- func (x *Address) GetNonce() uint64
- func (x *Address) GetPubKey() []byte
- func (a *Address) Mnemonics() (string, error)
- func (a *Address) Name() ([]byte, error)
- func (*Address) ProtoMessage()
- func (x *Address) ProtoReflect() protoreflect.Message
- func (x *Address) Reset()
- func (x *Address) String() string
- func (a *Address) Verify() error
- type Entry
- func (*Entry) Descriptor() ([]byte, []int)deprecated
- func (x *Entry) GetAddress() *Address
- func (x *Entry) GetPeers() []string
- func (x *Entry) GetPubRSAKey() []byte
- func (x *Entry) GetSignature() []byte
- func (x *Entry) GetValues() map[string]string
- func (d *Entry) MarshalYAML() (interface{}, error)
- func (*Entry) ProtoMessage()
- func (x *Entry) ProtoReflect() protoreflect.Message
- func (x *Entry) Reset()
- func (d *Entry) Sign(privateAddress *PrivateAddress) error
- func (x *Entry) String() string
- func (d *Entry) UnmarshalYAML(unmarshal func(interface{}) error) error
- func (d *Entry) Verify() (bool, error)
- type PrivateAddress
Constants ¶
This section is empty.
Variables ¶
View Source
var File_domain_proto protoreflect.FileDescriptor
Functions ¶
func NameFromMnemonics ¶
NameFromMnemonics ...
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) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) ProtoReflect ¶
func (x *Address) ProtoReflect() protoreflect.Message
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 (*Entry) Descriptor
deprecated
func (*Entry) GetAddress ¶
func (*Entry) GetPubRSAKey ¶
func (*Entry) GetSignature ¶
func (*Entry) ProtoMessage ¶
func (*Entry) ProtoMessage()
func (*Entry) ProtoReflect ¶
func (x *Entry) ProtoReflect() protoreflect.Message
func (*Entry) UnmarshalYAML ¶
UnmarshalYAML ...
type PrivateAddress ¶
PrivateAddress ...
func NewPrivateAddress ¶
func NewPrivateAddress(alias string) (*PrivateAddress, error)
NewPrivateAddress ...
func (*PrivateAddress) PublicRSAKey ¶
func (a *PrivateAddress) PublicRSAKey() ([]byte, error)
PublicRSAKey ...
Click to show internal directories.
Click to hide internal directories.