Updates
This commit is contained in:
+5
-3
@@ -52,15 +52,17 @@ body {
|
||||
}
|
||||
|
||||
/* Prose adjustments */
|
||||
.prose code {
|
||||
.prose :not(pre) > code {
|
||||
background-color: rgb(243 244 246);
|
||||
color: rgb(17 24 39);
|
||||
padding: 0.125rem 0.375rem;
|
||||
border-radius: 0.25rem;
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.dark .prose code {
|
||||
background-color: rgb(31 41 55);
|
||||
.dark .prose :not(pre) > code {
|
||||
background-color: rgb(55 65 81);
|
||||
color: rgb(229 231 235);
|
||||
}
|
||||
|
||||
.prose pre {
|
||||
|
||||
@@ -149,7 +149,7 @@ export default function P2PPage() {
|
||||
<h3 className="text-2xl font-semibold text-gray-900 dark:text-white mb-4">How Hyperswarm Works</h3>
|
||||
<div className="space-y-4 text-gray-600 dark:text-gray-300">
|
||||
<p>
|
||||
<strong>Topic-based discovery:</strong> P2NS hashes <code className="bg-gray-800 dark:bg-gray-700 text-gray-100 dark:text-gray-200 px-1.5 py-0.5 rounded">TOPIC_SEED</code> (default <code className="bg-gray-800 dark:bg-gray-700 text-gray-100 dark:text-gray-200 px-1.5 py-0.5 rounded">p2ns-dns</code>) with SHA-256 to form a 32-byte topic. Every node interested in the network joins that topic.
|
||||
<strong>Topic-based discovery:</strong> P2NS hashes <code className="rounded bg-gray-200 px-1.5 py-0.5 font-mono text-sm text-gray-900 dark:bg-gray-700 dark:text-gray-200">TOPIC_SEED</code> (default <code className="rounded bg-gray-200 px-1.5 py-0.5 font-mono text-sm text-gray-900 dark:bg-gray-700 dark:text-gray-200">p2ns-dns</code>) with SHA-256 to form a 32-byte topic. Every node interested in the network joins that topic.
|
||||
</p>
|
||||
<p>
|
||||
<strong>DHT lookup:</strong> HyperDHT returns peers that have announced on the topic. DHT results are candidates only—each connection still completes a Noise XX handshake so the remote party must prove key ownership.
|
||||
|
||||
Reference in New Issue
Block a user