Voltaire Swift
Native Swift wrappers over Voltaire’s C FFI, enabling iOS and macOS apps to use the same primitives used across Zig and TypeScript.What’s Included
- Core primitives: Address, Hash, Hex, Bytes32, U256
- Cryptography: Keccak-256, secp256k1 (PrivateKey, PublicKey, Signature)
- Zero-copy C interop for performance and safety
Quick Start
API Reference
Getting Started
Install and build the Swift package
Xcode Integration
Add the package to Xcode apps
Address
20-byte EVM addresses with EIP-55
Hash
32-byte Keccak-256 hashes
Hex
Encode and decode hex strings
Bytes32
Generic 32-byte values
U256
256-bit unsigned integers
PrivateKey
secp256k1 private keys
PublicKey
secp256k1 public keys
Signature
ECDSA signatures (r, s, v)

