Implement end-to-end encrypted buyer/seller messaging
Wire format (internal/message): sealed boxes to the listing's device key (X25519 + HKDF + ChaCha20-Poly1305), padded, proof-of-work stamped, with signed owner replies and address grants. Relay validation, bounded queues, gossip on per-region message topics and sync (store, p2p). Owner side (internal/inbox, API): inbox with hidden link messages and a per-day new-thread limit, replies, grants, and a private per-listing address. Public POST/GET /api/v1/messages for buyers. Browser: noble-based sealing and reply verification checked against a Go fixture, contact form, conversation view, message list, de/en strings. Docs: PROTOCOL.md messaging section matches the implementation. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
+2
-1
@@ -78,7 +78,8 @@ test("detail view shows the content and a passing verification report", async ()
|
||||
assert.equal(page.document.querySelectorAll(".checks li.ok").length, 6);
|
||||
assert.equal(page.document.querySelectorAll(".checks li.bad").length, 0);
|
||||
assert.ok(page.document.querySelector("a[href^='https://www.openstreetmap.org/']")!.getAttribute("rel")!.includes("noopener"));
|
||||
assert.match(text, /not available yet/);
|
||||
assert.match(text, /Contact the owner/);
|
||||
assert.ok(page.document.querySelector("form.compose textarea"), "the contact form is offered");
|
||||
} finally {
|
||||
page.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user