@@ -130,9 +130,9 @@ and content.
130130
131131The Kademlia node identifier is derived from the libp2p node's [ Peer
132132ID] ( https://github.com/libp2p/specs/blob/master/peer-ids/peer-ids.md ) . The
133- Kademlia node identifier is computed as the digest of the SHA256 hash function
134- of the binary representation of the Peer ID. The Kademlia identifier is a
135- 256-bit number, which is used as the node's identifier in the Kademlia
133+ Kademlia node identifier is computed as the digest of the SHA2-256 hash
134+ function of the binary representation of the Peer ID. The Kademlia identifier
135+ is a 256-bit number, which is used as the node's identifier in the Kademlia
136136keyspace.
137137
138138Example:
@@ -224,9 +224,10 @@ removed from the Routing Table.
224224
225225After removing unresponsive peers, any buckets that are not full MUST be
226226replenished with fresh, online peers. This can be accomplished by either adding
227- recently connected peers or by executing a ` FIND_NODE ` request with a randomly
228- generated Peer ID matching the bucket. ` FIND_NODE ` requests should only be run
229- for buckets up to the last non-empty bucket.
227+ recently connected peers or by executing a ` FIND_NODE ` [ RPC
228+ message] ( #rpc-messages ) with a randomly generated Peer ID matching the bucket.
229+ ` FIND_NODE ` requests should only be run for buckets up to the last non-empty
230+ bucket.
230231
231232Finally, the refresh process concludes by executing a ` FIND_NODE ` request for
232233the local node's Peer ID, ensuring the DHT Server maintains up-to-date
@@ -383,14 +384,14 @@ efficiently.
383384### Content Kademlia Identifier
384385
385386The Kademlia Identifier associated with a CID is derived from the multihash
386- contained by the CID, by hashing it with the SHA256 hash function. The
387+ contained by the CID, by hashing it with the SHA2-256 hash function. The
387388resulting 256-bit digest is used as the Kademlia Identifier for the content.
388389
389390Example:
390391
391392``` sh
392393CIDv1 (base32) : bafybeihfg3d7rdltd43u3tfvncx7n5loqofbsobojcadtmokrljfthuc7y
393- CID contained hash (hex) : 1220e536c7f88d731f374dccb568aff6f56e838a19382e488039b1ca8ad2599e82fe
394+ Multihash from CID (hex) : 1220e536c7f88d731f374dccb568aff6f56e838a19382e488039b1ca8ad2599e82fe
394395Kademlia Identifier (hex): d623250f3f660ab4c3a53d3c97b3f6a0194c548053488d093520206248253bcb
395396```
396397
@@ -466,13 +467,14 @@ keyspace:
466467 [ IPNS Routing Record] ( https://specs.ipfs.tech/ipns/ipns-record/#routing-record )
467468 and [ IPNS Record Verification] ( https://specs.ipfs.tech/ipns/ipns-record/#record-verification ) .
468469
469- Records MUST meet validity criteria specific to their record type before being
470- stored or updated. DHT Servers MUST verify the validity of each record before
471- accepting it.
470+ Records with the above prefixes MUST meet validity criteria specific to their
471+ record type before being stored or updated. DHT Servers MUST verify the
472+ validity of each record before accepting it. Records with other prefixes are
473+ not supported by the IPFS Kademlia DHT and MUST be rejected.
472474
473475### Record Routing
474476
475- The Kademlia Identifier of a record is derived by applying the SHA256 hash
477+ The Kademlia Identifier of a record is derived by applying the SHA2-256 hash
476478function to the record’s key and using the resulting digest in binary format.
477479
478480To store a value in the DHT, a client first finds the ` k ` closest peers to the
0 commit comments