You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix a bunch of broken links
* We have docker images now
* Gossip section in the API
* Gossip component in more places
* Correct Layer / Component terminology in a few places
description: 'Set the active document (only works within the Iroh console).',
248
247
slug: 'docs-switch',
249
248
arguments: [
250
-
{name: 'id',necessity: 'required',description: 'The [identifier](/docs/layers/documents#document-identifiers) of the document to switch to.'},
249
+
{name: 'id',necessity: 'required',description: 'The [document identifier](/docs/components/documents#document-identifiers) of the document to switch to.'},
251
250
],
252
251
examples: {
253
252
console: `> docs create
@@ -409,6 +408,29 @@ author:2ziftxhhind7atie
409
408
}
410
409
]
411
410
411
+
constgossip=[
412
+
{
413
+
name: 'gossip subscribe',
414
+
description: 'Subscribe to a gossip topic',
415
+
slug: 'gossip-subscribe',
416
+
arguments: [
417
+
{
418
+
name: 'topic',
419
+
necessity: 'required',
420
+
description: 'The topic to subscribe to'
421
+
},
422
+
{
423
+
name: 'bootstrap',
424
+
necessity: '',
425
+
description: 'one or more nodeIDs to bootstrap the subscription (nodes already hosting the topic)'
We chose QUIC as the transport protocol to underpin iroh on the network because it offers desirable user-facing features, such as multiple-ordered streams that do not block each other. However, we also chose QUIC for no small part because it sends UDP packets over the network. Leveraging UDP is instrumental in allowing us to do reliable hole-punching through firewalls and NAT routers to establish direct connections.
35
35
36
-
We opted to use [Quinn](https://github.com/quinn-rs/quinn), a solid open-source implementation with all the features we needed for iroh. It allowed us to plug in our custom [MagicSocket](https://iroh.computer/docs/layers/networking#magic-sockets), which selects the best network path among multiple paths between iroh endpoints with the help of a relay server.
36
+
We opted to use [Quinn](https://github.com/quinn-rs/quinn), a solid open-source implementation with all the features we needed for iroh. It allowed us to plug in our custom [MagicSocket](https://iroh.computer/docs/components/net#magic-sockets), which selects the best network path among multiple paths between iroh endpoints with the help of a relay server.
37
37
38
38
We had great success integrating with the Quinn API. However, even with our success, we knew we would likely see some performance issues in iroh because we couldn’t integrate closely *enough* with certain QUIC features.
Copy file name to clipboardExpand all lines: src/app/docs/ipfs/page.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,13 +20,13 @@ Here's a quick rundown on some of the core technical distinctions between IPFS &
20
20
21
21
| Concept | Iroh | Kubo |
22
22
| ------- | ---- | ---- |
23
-
|**[CID](https://docs.ipfs.tech/concepts/content-addressing/) Usage**| Used for root hashes on the [Blob layer](/docs/layers/blobs)| Used for all blocks |
23
+
|**[CID](https://docs.ipfs.tech/concepts/content-addressing/) Usage**| Used for root hashes on the [Blob layer](/docs/components/blobs)| Used for all blocks |
24
24
|**Hash Function**| BLAKE3 | Various, SHA2 by default |
Copy file name to clipboardExpand all lines: src/app/docs/overview/page.mdx
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,9 +43,10 @@ Every key in a document points to a hash-verified blob of bytes. We say “blobs
43
43
Iroh is organized into three _layers_. Each higher layer depends on functionality in the layer below it. Documents rely on blobs, and blobs rely on connections.
44
44
45
45
<Concepts>
46
-
<Conceptname="Documents"href="/docs/layers/documents"description="Collaborate on shared key-value tables of blobs with peers." />
47
-
<Conceptname="Blobs"href="/docs/layers/blobs"description="Fetch and cache byte sequences by their hash." />
48
-
<Conceptname="Connections"href="/docs/layers/connections"description="Open a connection to any available peer on the network." />
46
+
<Conceptname="Documents"href="/docs/components/documents"description="Collaborate on shared key-value tables of blobs with peers." />
47
+
<Conceptname="Blobs"href="/docs/components/blobs"description="Fetch and cache byte sequences by their hash." />
48
+
<Conceptname="Gossip"href="/docs/components/gossip"description="Broadcast messages to a swarm of peers." />
49
+
<Conceptname="Net"href="/docs/components/net"description="Open a connection to any available peer on the network." />
49
50
</Concepts>
50
51
51
52
Most users can and should be able to build entire applications with only the sync layer. If your use case is complex, iroh lets you remove the batteries, dropping down to lower layers in the stack. You can build trustless systems directly on the blob layer, or build your own networking protocol using the networking layer.
Copy file name to clipboardExpand all lines: src/app/docs/quickstart/page.mdx
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,14 @@ export const metadata = {
8
8
9
9
This guide will give you a quick tour of iroh from the command line. We'll create a document and sync it between two terminals. After that we'll look at where to go next to learn about how iroh works & where to integrate into your application. {{className: 'lead'}}
10
10
11
+
<Note>
12
+
Iroh is meant be used as a library by importing one of the existing Iroh SDKs. the Quickstart uses the CLI as a language-agnostic startiong point.
0 commit comments