Documentation ¶
Overview ¶
Package bzz exposes the data structure and operations necessary on the bzz.Address type which used in the handshake protocol, address-book and hive protocol.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidAddress = errors.New("invalid address")
Functions ¶
func ContainsAddress ¶ added in v1.11.0
ContainsAddress reports whether a is present in addrs.
Types ¶
type Address ¶
type Address struct { Underlay ma.Multiaddr Overlay swarm.Address Signature []byte Transaction []byte EthereumAddress []byte }
Address represents the bzz address in swarm. 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 bzz address in a format: [Overlay, Underlay] It can be used for logging
func (*Address) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.