Skip to content

Import Crypto from swift-crypto instead of CryptoKit - #56

Merged
germ-mark merged 1 commit into
mainfrom
port/swift-crypto
Aug 18, 2026
Merged

Import Crypto from swift-crypto instead of CryptoKit#56
germ-mark merged 1 commit into
mainfrom
port/swift-crypto

Conversation

@germ-mark

Copy link
Copy Markdown
Contributor

Unguarded import CryptoKit across 46 files was the last blocker to building
this package for Linux and Android. swift-crypto covers the entire API surface
used here — Curve25519.Signing/.KeyAgreement, SymmetricKey, SHA256,
ChaChaPoly, HPKE — and delegates to CryptoKit on Apple platforms, so
behavior is unchanged there. No SecureEnclave, SecKey, or Keychain usage
anywhere, so nothing needed redesign; the swap is mechanical.

Also raises the AtprotoTypes floor to 0.5.0, the first release that builds on
those platforms, stated in the manifest for the same reason as the swift-bases
floor: consumers ignore this package's lockfile.

All 157 tests pass on macOS. The Linux and Android CI legs that prove the other
platforms land stacked on this in #52.

Part of GER-2175.

🤖 Generated with Claude Code

CryptoKit is Apple-only and was the last blocker to building this package
for Linux and Android; the API surface used (Curve25519, SymmetricKey,
SHA256, ChaChaPoly, HPKE) is covered by swift-crypto, which delegates to
CryptoKit on Apple platforms. AtprotoTypes floor moves to 0.5.0, the
first release that builds on those platforms.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Aug 18, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c72d48c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@germ-network/autonomous-comm-protocol Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@germ-mark
germ-mark merged commit 89fbb64 into main Aug 18, 2026
11 of 12 checks passed
@germ-mark
germ-mark deleted the port/swift-crypto branch August 18, 2026 23:30
@github-actions github-actions Bot mentioned this pull request Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant