AviaryPeering extension

Self signed peer records and the address books that collect them.

on

Methods

newAddressBook([Uint8List? encoded]) → AddressBook

Available on Aviary, provided by the AviaryPeering extension

An empty address book, or one decoded from encoded (records are verified only when merged). Throws on a malformed encoding.
peerRecordInfo(Uint8List record) → PeerRecordInfo

Available on Aviary, provided by the AviaryPeering extension

The fields of an encoded record.
signPeerRecord(int id, String host, int port, SecureIdentity identity, {Uint8List? prekey}) → Uint8List

Available on Aviary, provided by the AviaryPeering extension

A record for validator id signed with identity's hybrid signature key; prekey is the optional ratchet prekey.
verifyPeerRecord(Uint8List record) → bool

Available on Aviary, provided by the AviaryPeering extension

Whether record decodes and its owner signature verifies.