Migrate cal's internal posta implementation to pkg/posta #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What to build
Cal currently carries ~1000 LOC under `internal/posta` that re-implements the Posta wire protocol (envelope, actor, sign/verify, canonical URL, replay, client, outbound). All of this is now available in `code.bas.es/posta/spec/pkg/posta` and should be imported instead of duplicated.
Cal's remaining application-layer needs after migration:
Net effect: drop roughly ~900 LOC from cal; pkg/posta becomes the single source of truth for the wire format across cal, posta-server, and posta-web.
Acceptance criteria
Blocked by