spike(block2): de-risk social layer — key derivation, OfferTransport, NIP-99 round-trip

Throwaway research spike (spike/ branch, outside pub workspace, no prod deps
touched). Validates the open Block 2 decisions before committing a funded round:

1. Deterministic one-way secp256k1 (Nostr) key derived from the Ğ1 root seed
   via HKDF — user still backs up ONE thing. Reproducible + signs (BIP340).
2. OfferTransport abstraction over Nostr NIP-99 (kind 30402); Offer stays
   inventory/location-agnostic, geohash coarsened on the wire (tested).
3. publish->discover-by-geohash proven end-to-end against an in-process
   hermetic mini-relay (~34ms round-trip).

Findings + risks + recommendation in docs/design/spike-block2-findings.md.
Block 1 suite untouched. 14 tests green, analyzer clean.
This commit is contained in:
vjrj 2026-07-10 01:57:25 +02:00
parent 6eb1517ffb
commit 49b872b405
16 changed files with 1284 additions and 0 deletions

3
spike/block2_spike/.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
# Throwaway spike — don't commit build artifacts or the resolved lockfile.
.dart_tool/
pubspec.lock