Documentation
¶
Overview ¶
Package wire contains the implementation of the wire interfaces.
Index ¶
Constants ¶
View Source
const AddrLen = 32
AddrLen is the length of an address in byte.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
Account is a wire account.
func NewRandomAccount ¶
NewRandomAccount generates a new random account.
type Address ¶
Address is a wire address.
func NewRandomAddress ¶
NewRandomAddress returns a new random peer address.
func (Address) Cmp ¶
Cmp compares the byte representation of two addresses. For `a.Cmp(b)` returns -1 if a < b, 0 if a == b, 1 if a > b.
func (Address) MarshalBinary ¶
MarshalBinary marshals the address to binary.
func (*Address) UnmarshalBinary ¶
UnmarshalBinary unmarshals an address from binary.
Click to show internal directories.
Click to hide internal directories.