Documentation ¶
Index ¶
- func GetRandomKey() []byte
- type ID
- func (id ID) GetHash() []byte
- func (id ID) HashEqual(other []byte) bool
- func (id ID) HashString() string
- func (id ID) KeyEqual(other []byte) bool
- func (id ID) KeyString() string
- func (id ID) MarshalBinary() ([]byte, error)
- func (id *ID) SetHash(newHash []byte)
- func (id *ID) UnmarshalBinary(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRandomKey ¶
func GetRandomKey() []byte
GetRandomKey generates and returns a random key for ID.
Types ¶
type ID ¶
type ID struct {
// contains filtered or unexported fields
}
ID is host id.
func (ID) HashString ¶
HashString is a base58-encoded string representation hash of public key.
func (ID) MarshalBinary ¶
MarshalBinary is binary marshaler.
func (*ID) UnmarshalBinary ¶
UnmarshalBinary is binary unmarshaler.
Click to show internal directories.
Click to hide internal directories.