Skip to content

lanpair 0.1.0

Choose a tag to compare

@TonyD365-Agent TonyD365-Agent released this 21 Nov 00:37
· 48 commits to main since this release
3bba319

First release: the cryptographic core. Discovery, pairing and the high-level Host /
Device API come in later releases.

  • Identity: one 32-byte seed per device gives an Ed25519 signing key and an X25519
    encryption key. PublicIdentity is 64 bytes (to_bytes / from_bytes).
  • Sealer / Opener: envelopes that are encrypted to the recipient (X25519,
    HKDF-SHA256, ChaCha20-Poly1305), signed by the sender, bound to the recipient, and
    rejected when stale (±30 s) or replayed.
  • Replay protection survives restarts: time-based sender sequence numbers, and
    JsonFileSeqStore (or a start-up window with MemorySeqStore) on the receiver.
  • Strict validation: malformed input of any kind raises EnvelopeError.

Install: pip install lanpair