feat(brahman-dht): B3 — discovery typed sobre el Kademlia compartido

brahman-net corre un único Kademlia para todo el ecosistema.
brahman-dht le pone arriba un esquema de claves namespaced para que
distintos dominios coexistan sin colisión en la misma malla.

- key — RecordKind (Code/Card/Persona/Service/Custom) + DhtKey.
  Wire: [kind_tag] ++ blake3(id) = 33 bytes longitud fija. Custom(n)
  usa 0x80|n: nunca choca con los kinds estándar.
- Dht — wrapper sobre BrahmanNet: announce/withdraw/find (modelo de
  provider records).

Consumidores: minga (Code), brahman-card-discovery (Card), agorapura
(Persona). 5 tests verdes (incl. smoke async sobre un nodo libp2p real).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
sergio
2026-05-20 15:11:40 +00:00
parent dc8554d123
commit 27603c906d
5 changed files with 226 additions and 0 deletions
Generated
+11
View File
@@ -1746,6 +1746,17 @@ dependencies = [
"ulid",
]
[[package]]
name = "brahman-dht"
version = "0.1.0"
dependencies = [
"blake3",
"brahman-net",
"libp2p",
"serde",
"tokio",
]
[[package]]
name = "brahman-handshake"
version = "0.1.0"