tane/spike/block2_spike/lib/block2_spike.dart
vjrj 49b872b405 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.
2026-07-10 01:57:25 +02:00

12 lines
358 B
Dart

/// THROWAWAY Block 2 de-risking spike. Not production; not on the pub workspace.
library;
export 'src/bech32.dart';
export 'src/hkdf.dart';
export 'src/mini_relay.dart';
export 'src/nip99.dart';
export 'src/nostr_event.dart';
export 'src/nostr_key.dart';
export 'src/nostr_offer_transport.dart';
export 'src/offer.dart';
export 'src/offer_transport.dart';