Documentation
¶
Overview ¶
Package locators represents node identities, it's hash function representing in Multihash format: https://multiformats.io/multihash/
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrUnsupportedVersion ¶
type ErrUnsupportedVersion struct {
// contains filtered or unexported fields
}
ErrUnsupportedVersion error if binary versio is not supported
func (*ErrUnsupportedVersion) Error ¶
func (e *ErrUnsupportedVersion) Error() string
func (*ErrUnsupportedVersion) Version ¶
func (e *ErrUnsupportedVersion) Version() []byte
Version which is not supported
type Node ¶
Node core identities
func FromKeys ¶
FromKeys creates new Node struct from public and private keys by generating node id as multihash of SHA1 of public key
func (*Node) MarshalBinary ¶
MarshalBinary is a binary encoding implementation
func (*Node) UnmarshalBinary ¶
UnmarshalBinary is a binary decoding implementation
type UnsupportedHashError ¶
type UnsupportedHashError struct { // Name of hash algorithm Name string }
UnsupportedHashError if hashing algorithm specified is not supported
func (*UnsupportedHashError) Error ¶
func (e *UnsupportedHashError) Error() string
Click to show internal directories.
Click to hide internal directories.