diff options
| author | Adam Soltys <[email protected]> | 2026-08-18 12:06:04 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-08-18 12:06:04 -0700 |
| commit | a0374566a5c69d87e5a156f5fabecf5b9b45d6f9 (patch) | |
| tree | cf87f4584724e9149c8ae1075d28007a2a9d203b /src/concord.js | |
| parent | 3d80fef6aeab03795c4257ab8c4f27113d7e9022 (diff) | |
| download | coinosv3-a0374566a5c69d87e5a156f5fabecf5b9b45d6f9.tar.gz coinosv3-a0374566a5c69d87e5a156f5fabecf5b9b45d6f9.zip | |
A message sends the instant you let go of it: the rumor hashes synchronously onto the screen as a dimmed bubble, crypto and relays catch up in the background, and one small tick marks the moment a relay takes it
Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012u4oe1KPx9faCsDBLfZYqi
Diffstat (limited to 'src/concord.js')
| -rw-r--r-- | src/concord.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/concord.js b/src/concord.js index 09e4f72..9f6803d 100644 --- a/src/concord.js +++ b/src/concord.js @@ -82,7 +82,7 @@ export const banlistEid = (cid) => bytesToHex(hkdf32(hexToBytes(cid), "concord/b // ---- CORD-01 envelope ---- // wrap(1059, signed by stream key) > seal(20013 encrypted | 20014 plaintext, author-signed) > rumor -const rumorWithId = (rumor) => ({ ...rumor, id: getEventHash({ ...rumor, tags: rumor.tags || [] }) }); +export const rumorWithId = (rumor) => ({ ...rumor, id: getEventHash({ ...rumor, tags: rumor.tags || [] }) }); // Sign a seal around a rumor. `signer` is a raw secret key (Uint8Array) or a // { signEvent } adapter (nostr-login extension/bunker). Plaintext seals |
