Skip to content

Commit 59e87ce

Browse files
kalvinnchauam
andauthored
feat: enable packaged channel writes, encrypted recipes, and direct messages (#436)
Signed-off-by: am <6e30cd56c30e030cd31bb0939b94a7c257c9a09d5ba2d92cf2735da45629f248@buzz.block.builderlab.xyz> Co-authored-by: am <6e30cd56c30e030cd31bb0939b94a7c257c9a09d5ba2d92cf2735da45629f248@buzz.block.builderlab.xyz>
1 parent f466de2 commit 59e87ce

16 files changed

Lines changed: 1549 additions & 25 deletions

File tree

‎Cargo.lock‎

Lines changed: 193 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/channels.md‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,7 @@ profile eligibility before signing and again before publication, validates
363363
the returned command, and confirms relay-owned state before removing a row. Archive retains membership;
364364
confirmed Delete/Leave use the existing access-loss purge. Commands use narrow
365365
development-broker routes, never the message outbox or automatic replay. Hosts
366-
without this capability display an unavailable notice; native/direct-signer parity
367-
is deferred.
366+
without this capability display an unavailable notice; packaged native transport supports these dedicated commands.
368367

369368
Main’s DM × remains local removal, including restoration on new message evidence.
370369
The separate, confirmed Hide conversation action publishes `41012`, not Leave or Delete. The separate relay-authored `30622`
@@ -458,7 +457,7 @@ admission are unchanged. Publishing reuses the same community's authenticated li
458457
socket; no HTTP fallback or new connection is added. Restart an already-running
459458
dev broker to load these routes. `just web` supports this complete browser flow;
460459
`just desktop` is not required. Hosts without the dedicated capability stay
461-
read-only; packaged/native adapter parity is not implemented here.
460+
read-only; packaged/native uses dedicated purpose-bound commands for these edits.
462461

463462
Behavior matrices live in `channel-details.test.ts`,
464463
`ChannelDetailsEditor.test.tsx`, `store.test.ts` and `relay-broker-api.test.mjs`.

‎docs/identity.md‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ NIP-11 `self` establishes relay authority; the operator-contact `pubkey` is not
8181
a substitute. The existing live owner handles WSS/NIP-42 authentication and
8282
signature verification. IPC permissions remain limited to the main WebView.
8383

84+
Channel lifecycle/details and identity archive commands, channel recipe preparation/decoding,
85+
and opening direct messages use purpose-bound native commands. Creation kind 9007 is
86+
advertised only when NIP-11 reports NIP-29 support. NIP-44 stays in the native
87+
identity owner; recipe plaintext is never returned by a generic decrypt command.
88+
8489
Community admission, kind-0 profile reads/publication and the adapter's advertised
8590
message/event writes use this identity. [Join recovery](communities.md#packaged-admission-and-recovery)
8691
records public progress before remote changes. The existing durable outbox retains
@@ -90,7 +95,7 @@ being republished or silently re-dated. Missing/failed readback retains uncertai
9095
the user must inspect the conversation before explicitly sending a new message.
9196

9297
Optional capabilities are absent until implemented: protected media/upload,
93-
repository HTTP, lifecycle and other broker-only
98+
repository HTTP and other broker-only
9499
helpers are not claimed by this adapter. Public HTTPS avatars/icons can display;
95100
protected media does not gain access from the image CSP allowance. NIP-FI assertion
96101
acquisition is not implemented, so deployments enforcing it are outside acceptance.

‎src-tauri/Cargo.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ bech32 = "0.11"
3636
secp256k1 = { version = "0.31", default-features = false, features = ["std"] }
3737
getrandom = "0.3"
3838
zeroize = "1.9"
39+
nostr = { version = "0.44", features = ["nip44"] }
3940

4041
[dev-dependencies]
4142
tempfile = "3"

0 commit comments

Comments
 (0)