docs: unified smolmail

This commit is contained in:
randogoth 2026-09-30 08:47:11 +03:00
parent bd9bcf1076
commit 864daa0bad
8 changed files with 12 additions and 12 deletions

View file

@ -5,7 +5,7 @@
# ///
# Copyright 2026 randogoth
# SPDX-License-Identifier: Apache-2.0
"""Smol Mail reference client -- Reticulum transport.
"""smolmail reference client -- Reticulum transport.
Implements reticulum.md (protocol 1.2), the Reticulum-transport addendum to
SPEC.md's version 1.1. Identities, envelopes, message identifiers, operations,
@ -314,7 +314,7 @@ def unseal(identities: list[Identity], envelope: bytes) -> dict:
if len(envelope) < ENVELOPE_HEADER + 16:
raise SmolError("envelope too short")
if envelope[:4] != MAGIC:
raise SmolError("not a Smol Mail envelope")
raise SmolError("not a smolmail envelope")
if envelope[4] != VERSION:
raise SmolError(f"unsupported envelope version {envelope[4]}")
to, epk, sealed = envelope[5:37], envelope[37:69], envelope[69:]