End-to-end encryption for messaging apps: forward-secret sessions with a post-quantum handshake, groups, sealed envelopes and safety numbers, on iOS, Android and the web from one core.
Install · What you get · SDKs · Documentation · Provenance · Contributing
One core in Zig with no runtime dependencies, a C ABI over it, and three thin packages: Swift, Kotlin and TypeScript over a WebAssembly build. Storage stays in your app, in your language.
iOS and Android carry the compiled core inside the package, an XCFramework and a .so, so you
add a coordinate and never run a build step. On the web the package carries the wasm.
iOS, Swift. In Xcode, File, Add Package Dependencies, paste the repository URL. In a
Package.swift:
.package(url: "https://github.com/myzonerocks/gossveil", from: "0.1.0-alpha.4")Android, Kotlin.
implementation("io.github.avosa:gossveil:0.1.0-alpha.4")Web, TypeScript.
bun add @myzonerocks/gossveil@0.1.0-alpha.4Then write the first session with the guide for your platform: iOS, Android, Web.
| Area | What is in the box |
|---|---|
| Sessions | Published key bundles with signed, one-time and post-quantum keys; the handshake; the forward-secret ratchet with skipped-key recovery; session records with archived states; replay rejection |
| Post-quantum ratchet | A sparse post-quantum ratchet inside every session, so long-lived sessions stay ahead of a quantum adversary |
| Groups | Sender-key distribution, group encrypt and decrypt with out-of-order delivery |
| Sealed envelopes | Server and sender certificates, envelopes for one recipient and for many, the server-side split |
| Identity | Curve25519 keys and signatures, identity key pairs, alternate-identity proofs |
| Safety numbers | The iterated fingerprint, the sixty-digit display form and the scannable form |
| Usernames | Hashing, zero-knowledge proofs of ownership, links, candidates |
| Account keys | Entropy pool, backup key, backup id, media ids and media keys |
| Primitives | HKDF, AES-256-GCM-SIV, chunked MACs, random bytes, content framing |
| SDK | For | Package | Guide |
|---|---|---|---|
| Swift | iOS, macOS | SwiftPM, a checksummed XCFramework | sdk/swift |
| Kotlin | Android | Maven Central io.github.avosa:gossveil |
sdk/kotlin |
| TypeScript | Browser, Node | npm @myzonerocks/gossveil |
sdk/ts |
| C | any language with a C FFI | zig build c, a header, static and shared |
sdk/c |
The three packages are thin wrappers over the same C ABI and share one operation contract, so the same concept carries the same name everywhere and a record written by one opens in another.
Key encodings, record layouts, message framing and key schedules are checked against frozen wire vectors recorded by this project's own tooling and replayed on every build. A session started with Gossveil on one platform can continue on another without changing the cryptographic core or the wire representation.
Anything that talks to a particular service: registration, contact discovery, key backup enclaves, key transparency, backup-file validation and credential issuance belong to the application and its own backend.
- Swift SDK, Kotlin SDK, TypeScript SDK, C SDK
- API, the surface each package exposes, name for name
- Architecture, how the layers fit
- Design, the design the implementation follows
- Changelog
- Contributing, which is also how to build from source
- Provenance
- License, Third-party notices
Gossveil is licensed under the Apache License, Version 2.0.
See LICENSE.md, NOTICE.md and PROVENANCE.md.