docs: unified smolmail
This commit is contained in:
parent
bd9bcf1076
commit
864daa0bad
8 changed files with 12 additions and 12 deletions
|
|
@ -5,7 +5,7 @@
|
|||
# ///
|
||||
# Copyright 2026 randogoth
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
"""Smol Mail reference client.
|
||||
"""smolmail reference client.
|
||||
|
||||
Implements SPEC.md version 1.1 from both ends: one master secret, sealed and
|
||||
signed messages, server key pinning, trust on first use with rotation chains,
|
||||
|
|
@ -282,7 +282,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:]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue