sealnet 2.0.4 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  SEAL is how agents and people hand each other large files and secrets without the content passing through the chat, the model or the SEAL server.
4
4
 
5
- Files are encrypted **client-side** before a single byte leaves your app; SEAL only ever stores ciphertext. The key of a link travels in its URL fragment, which never reaches SEAL servers — or, for a link to someone's address, nowhere in the link: it waits wrapped to their key. No account or API key required.
5
+ Files are encrypted **client-side** before a single byte leaves your app; SEAL only ever stores ciphertext. The key of a link travels in its URL fragment, which never reaches SEAL servers; or, for a link to someone's address, nowhere in the link: it waits wrapped to their key. No account or API key required.
6
6
 
7
7
  ## Install
8
8
 
@@ -20,8 +20,8 @@ and the SDK arrives as one global.
20
20
 
21
21
  ```html
22
22
  <script
23
- src="https://seal.net/sdk/v2.0.4/seal.js"
24
- integrity="sha384-ERyEkHFbsd4NaS6YUTq3x8GzH4QOYd1vZvLr+s7Ky+Ga6eJwQAKG6xwLDB2T7JMO"
23
+ src="https://seal.net/sdk/v3.1.0/seal.js"
24
+ integrity="sha384-cwrpNTtrwmKvOqEIX3B0BacbxDFEx2X6MfoDvNFtjLemefebcp8HZ/YyIHAw5/9h"
25
25
  crossorigin="anonymous"
26
26
  ></script>
27
27
  <script>
@@ -135,7 +135,10 @@ that errored.
135
135
 
136
136
  Reading a seal is open to Node and to pages served from seal.net. A browser
137
137
  page on any other site sends and asks (`send`, `request`) but does not read:
138
- the receiving endpoints answer no other origin.
138
+ the receiving endpoints answer no other origin. A page served from seal.net
139
+ reaches the API through the site's own `/api`, not `api.seal.net`:
140
+ `new SealClient({ apiUrl: 'https://seal.net/api' })`. Without `to` (Node only)
141
+ what you read lives in the page: leaving it loses an answer.
139
142
 
140
143
  ```typescript
141
144
  const opened = await seal.open(link, { password: 'secret42' })
@@ -162,7 +165,7 @@ const ask = await seal.request({
162
165
  kind: 'secret', // 'secret' | 'file' | 'any'
163
166
  whereUrl: 'https://api.search.brave.com/app/keys', // where the key is created
164
167
  })
165
- show(ask.url, ask.words) // the page shows the same three words
168
+ show(ask.url, ask.words) // the page shows the same eight words
166
169
 
167
170
  const answer = await seal.waitFor(ask.intakeId, { keyPair: keys, to: './secrets' })
168
171
  answer.files[0].path // the value stays in the file
@@ -170,7 +173,7 @@ answer.files[0].path // the value stays in the file
170
173
 
171
174
  A link addressed to your address opens with `open(link, { keyPair: keys })`.
172
175
 
173
- The three words name your address to the person (`fingerprint_words.json`):
176
+ The eight words name your address to the person (`fingerprint_words.json`):
174
177
  the same address gives the same words in every SEAL client.
175
178
 
176
179
  ## Sending to an address, and your inbox
@@ -189,7 +192,7 @@ sent.delivered // true: it is in their inbox
189
192
 
190
193
  const inbox = await seal.inbox({ keyPair: keys, wait: 60 }) // waits up to 60 s for something
191
194
  for (const item of inbox.items) {
192
- // item: { id, fromWords (three words of the sender, or null), label, receivedAt, expiresAt }
195
+ // item: { id, fromWords (eight words of the sender, or null), label, receivedAt, expiresAt }
193
196
  const saved = await seal.open(item, { keyPair: keys, to: './downloads' })
194
197
  await seal.dismiss(item, { keyPair: keys })
195
198
  }
@@ -201,14 +204,14 @@ to wait for the next change instead of the next item.
201
204
  ## A person's SEAL inbox
202
205
 
203
206
  A person keeps their own inbox at box.seal.net. Connect your address to it once:
204
- they open the page, compare the three words and connect. From then on pass
207
+ they open the page, compare the eight words and connect. From then on pass
205
208
  their address as `owner` and every seal you send also lands in their inbox,
206
209
  where they manage and revoke it; pass it as `to` to `request` and the request
207
210
  waits there as a card.
208
211
 
209
212
  ```typescript
210
213
  const pairing = await seal.pair({ keyPair: keys, name: 'Report bot' })
211
- show(pairing.url, pairing.words) // the page shows the same three words
214
+ show(pairing.url, pairing.words) // the page shows the same eight words
212
215
  const inbox = await pairing.wait() // { address, name }
213
216
 
214
217
  const sent = await seal.send({ file, filename: 'report.pdf', ttl: '1d', owner: inbox.address, keyPair: keys })
@@ -1,4 +1,4 @@
1
- sealnet 2.0.4 — third-party notices
1
+ sealnet 3.1.0 — third-party notices
2
2
 
3
3
  The standalone browser build (dist/seal.global.js, also published at
4
4
  https://seal.net/sdk/v<version>/seal.js) bundles the software below.