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:
@@ -3,9 +3,11 @@ module git.stinnesbeck.com/nils/allmende
|
||||
go 1.27.3
|
||||
|
||||
require (
|
||||
filippo.io/edwards25519 v1.2.0
|
||||
github.com/libp2p/go-libp2p v0.52.0
|
||||
github.com/libp2p/go-libp2p-pubsub v0.19.0
|
||||
github.com/tyler-smith/go-bip39 v1.1.0
|
||||
golang.org/x/crypto v0.59.0
|
||||
golang.org/x/term v0.48.0
|
||||
modernc.org/sqlite v1.62.0
|
||||
)
|
||||
@@ -92,7 +94,6 @@ require (
|
||||
go.uber.org/mock v0.6.0 // indirect
|
||||
go.uber.org/multierr v1.11.0 // indirect
|
||||
go.uber.org/zap v1.28.0 // indirect
|
||||
golang.org/x/crypto v0.59.0 // indirect
|
||||
golang.org/x/exp v0.0.0-20261113113407-e3970619a1a4 // indirect
|
||||
golang.org/x/mod v0.43.0 // indirect
|
||||
golang.org/x/net v0.62.0 // indirect
|
||||
|
||||
Reference in New Issue
Block a user