Skip to main content

Module peers

Module peers 

Source
Expand description

peers syscall category — DAG-mutable AddressBook ops.

ai.bytesandbrains.address_book-domain custom ops emitted by bb_derive::register_opInsert, InsertMany, Lookup. Single-address Insert is the common transport-learn case (observed source from one envelope); InsertMany carries the full advertised bag from identity-announcement sites; Lookup emits the full ordered slice so callers that want a single address pick one explicitly.

Spec: docs/ADDRESSING.md — “DAG-mutable AddressBook”.

Modules§

insert
AddressBook::Insert(peer, addr) - custom op registered via bb::register_op! that pushes a multiaddr into the engine’s bb_runtime::framework::AddressBook from the data plane.
insert_many
AddressBook::InsertMany(peer, addresses) — custom op registered via bb::register_op! that pushes a full address bag into the engine’s bb_runtime::framework::AddressBook from the data plane.
lookup
AddressBook::Lookup(peer) → addresses — custom op registered via bb::register_op! that resolves every multiaddr bound to a peer from the engine’s bb_runtime::framework::AddressBook.