tane/packages/commons_core/pubspec.yaml
vjrj 5bc1715637 feat(commons_core): Blossom MediaTransport for offer photos
Add a MediaTransport interface (sibling of Offer/Message/Trust transports)
and a Blossom (BUD-01/02) backend: sign a kind-24242 upload auth with the
same secp256k1 identity, PUT the bytes over HTTP, return the content-
addressed URL. Idempotent by SHA-256; http.Client injected for tests.
2026-07-10 21:04:47 +02:00

32 lines
1 KiB
YAML

name: commons_core
description: >-
Generic local-first commons engine primitives (identity, clocks, value types).
Pure Dart, Flutter-free. No seed-specific code. See
../../docs/design/core-domain-boundary.md.
version: 0.1.0
publish_to: none
environment:
sdk: ^3.11.5
resolution: workspace
dependencies:
uuid: ^4.5.0
equatable: ^2.0.5
meta: ^1.15.0
# Pure-Dart AEAD + HKDF (Apache-2.0) for sealed backups. No FFI, host-testable.
cryptography: ^2.7.0
# Pure-Dart Nostr protocol (LGPL-3.0, AGPL-compatible, Flutter-free): events,
# signing, NIP-19, NIP-44, gift wrap — the vetted crypto for the social layer
# transport. We keep the relay/websocket layer and our derivation on top.
nostr: ^2.0.0
# Plain HTTP (BSD-3, AGPL-compatible) for the Blossom media server — offer
# photos are uploaded over HTTP, not the relay websocket. Client is injectable.
http: ^1.2.0
# Sync SHA-256 (BSD-3) for content-addressed Blossom blob ids.
crypto: ^3.0.3
dev_dependencies:
lints: ^6.0.0
test: ^1.25.6