Documentation ¶
Overview ¶
Package peer provides a message type that provides the base information, identity key and relay rate for an Indra relay.
Index ¶
- Constants
- func Gen() codec.Codec
- func Splice(s *splice.Splice, id nonce.ID, key *crypto.Pub, relayRate uint32, ...)
- type Ad
- func (x *Ad) Decode(s *splice.Splice) (e error)
- func (x *Ad) Encode(s *splice.Splice) (e error)
- func (x *Ad) Len() int
- func (x *Ad) Magic() string
- func (x *Ad) Sign(prv *crypto.Prv) (e error)
- func (x *Ad) Splice(s *splice.Splice)
- func (x *Ad) SpliceNoSig(s *splice.Splice)
- func (x *Ad) Unwrap() interface{}
- func (x *Ad) Validate() (valid bool)
Constants ¶
View Source
const ( Magic = "pead" Len = ad.Len + slice.Uint32Len )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Ad ¶
type Ad struct { // Embed ad.Ad for the common fields ad.Ad // RelayRate is the fee for forwarding packets, mSAT/Mb (1024^3 bytes). RelayRate uint32 }
Ad stores a specification for the relaying fee rate and existence of a peer.
func (*Ad) SpliceNoSig ¶
SpliceNoSig serializes the Ad but stops at the signature.
Click to show internal directories.
Click to hide internal directories.