Documentation ¶
Overview ¶
Package aurora exposes the data structure and operations necessary on the aurora.Address type which used in the handshake protocol, address-book and hive protocol.
Index ¶
Constants ¶
View Source
const ( FullNode = iota LightNode BootNode )
Variables ¶
View Source
var ErrInvalidAddress = errors.New("invalid address")
Functions ¶
This section is empty.
Types ¶
type Address ¶
Address represents the aurora address in boson. It consists of a peers underlay (physical) address, overlay (topology) address and signature. Signature is used to verify the `Overlay/Underlay` pair, as it is based on `underlay|networkID`, signed with the public key of Overlay address
func NewAddress ¶
func ParseAddress ¶
func (*Address) MarshalJSON ¶
func (*Address) ShortString ¶
ShortString returns shortened versions of aurora address in a format: [Overlay, Underlay] It can be used for logging
func (*Address) UnmarshalJSON ¶
type AddressInfo ¶ added in v1.1.0
AddressInfo contains the information received from the handshake.
func (*AddressInfo) LightString ¶ added in v1.1.0
func (i *AddressInfo) LightString() string
type BitVectorApi ¶
type ChunkInfoOverlay ¶
type ChunkInfoOverlay struct { Overlay string `json:"overlay"` Bit BitVectorApi `json:"bit"` }
Click to show internal directories.
Click to hide internal directories.