Skip to content

Wallet Infrastructure and Security Model ​

Industry Background ​

Wallet systems typically depend on one or more foundational cryptographic methods to safeguard private keys. Understanding these approaches provides context for the security model described in this document.

Shamir's Secret Sharing (SSS) ​

SSS divides a private key into multiple shares, requiring a minimum threshold to reconstruct the original. It provides perfect secrecy — any number of shares below the threshold reveals nothing about the key. SSS is mature, well-tooled, and fast (20–40ms signing). The trade-off is that the private key must be fully reassembled to sign, creating a single point of failure at the moment of reconstitution.

Threshold Signature Schemes (TSS) ​

TSS (commonly known as MPC) allows multiple parties to jointly produce a signature without ever reassembling the private key. This eliminates the reconstitution risk of SSS. The trade-off is immaturity — the first efficient two-party ECDSA protocol appeared only in 2017 — and performance: each signature involves network roundtrips, introducing latency that can reach several seconds.

Trusted Execution Environments (TEE) ​

TEEs execute cryptographic operations inside hardware enclaves, ensuring key material is never exposed and only authorized code runs. Clients can verify operations through attestations. TEEs scale well and avoid the roundtrip latency of TSS, but their security depends on enclave integrity, which has historically been vulnerable to side-channel exploits.

WebAuthn PRF Extension ​

The WebAuthn PRF (Pseudo-Random Function) extension derives a deterministic secret from a user's passkey hardware — Secure Enclave on Apple devices, TPM on Windows, Titan chip on Android. This secret is bound to the passkey and the user's biometric or PIN, computed on-device during authentication, and never transmitted. It enables a class of wallet designs where key material can be encrypted with a secret that no server has ever seen.


Three-Party Key Protection ​

Overview ​

Private keys in this system are never stored whole — not on user devices, not on our servers, not anywhere. Instead, each key is split into two shares, and one of those shares is locked by a secret that only the user's passkey can produce. Three parties are therefore involved, and all three must take part to use a key: the user's authenticator, the API and the crypto enclave.

This is a hybrid model: it combines passkey-based client-side encryption (PRF-as-KEK), secret sharing, and an isolated server-side enclave into a single architecture. The split gives the guarantee Shamir's Secret Sharing is valued for — either share alone reveals nothing about the key — while locking one share to the user's passkey means that what our servers store is not enough to reconstruct it.

This page describes a wallet created with a passkey that supports PRF, which is the default on supported devices.


The Three Parties ​

Party 1 — The User's Authenticator ​

The user's passkey computes a deterministic secret bound to that passkey and the user's biometric or PIN. This output — called a PRF output — is produced on-device during authentication and never transmitted anywhere. It is not stored. It is not logged. It exists only in memory.

This secret is the user's contribution to key reconstruction. Without it, the other two parties hold nothing that can produce a usable private key.

Party 2 — The API ​

The API stores an encrypted copy of the user's key material. It is encrypted with the user's PRF-derived secret, which the API has never seen. The API controls access — it will only release this encrypted payload to a request that presents a valid WebAuthn assertion signed by the user's registered passkey. It cannot, however, decrypt the payload itself.

The API acts as an authenticated delivery mechanism, not a key custodian.

Party 3 — The Crypto Enclave ​

A separate, isolated system — operating independently of the API with its own encryption keys and infrastructure — holds the server-side key share. This share is encrypted at rest with a secret known only to the enclave. It is released only for a request that has passed passkey assertion validation, to be combined with the user's share on the user's device.

The enclave never sees the user's PRF output. Once a wallet has been created, it does not see the user's key share or the assembled private key either.


Security Properties ​

No Single Point of Failure ​

ScenarioConsequence
User device stolenAttacker cannot reproduce the biometric/PIN; PRF output is not obtainable
API data stolenAttacker obtains only ciphertext encrypted with a secret they have never seen
Enclave data stolenAttacker obtains one share of the key, which alone reveals nothing; the other share is not on that system
API and enclave data stolenAttacker obtains the encrypted user payload and the server share — but still cannot decrypt the user payload without the PRF output from the user's passkey

The last scenario is the critical one. Everything stored on both systems together is still not enough to reconstruct a private key. The secret from the user's passkey is the missing piece, and it is never on our side.

Information-Theoretic Security ​

The key split inherits the same class of guarantee as Shamir's Secret Sharing: it is not merely computationally secure — it is information-theoretically secure. An attacker who holds only one of the two shares learns nothing about the private key, however much computing power they have. This is the same guarantee provided by a one-time pad.

The lock on the user's share is a different kind of protection: strong encryption under the secret from the user's passkey.

Non-Custodial by Design ​

We operate both the API and the enclave. Despite this, nothing we store is enough to reconstruct a user's key. The user's PRF output is the missing piece — it is produced by the user's passkey and never transmitted. This is not a policy or a terms-of-service commitment. It follows from how the user's share is encrypted, and it holds regardless of internal access controls.

Creating a wallet is the one moment our systems handle the key material directly: they generate it, derive the wallet's addresses, and hand the user's share to the device, which locks it with the passkey. From then on, no copy of that share remains on our side in a form we can unlock.


How a Transaction Is Signed ​

All signing happens on the user's device. No server assembles the private key to sign.

  1. The user approves a transaction in the application. The device authenticates the user via biometric or PIN.
  2. The device computes its hardware-bound PRF secret locally. This secret never leaves the device.
  3. The application retrieves the encrypted user payload from the API and the server share from the enclave. Neither of these pieces is usable on its own.
  4. On the user's device, in memory: the hardware secret decrypts the user payload, yielding the user's key share. The two shares are combined into the full private key.
  5. The private key signs the transaction — entirely on-device.
  6. The private key is wiped from memory once the transaction is signed. It is not cached, not persisted, not logged.

During signing, the full private key exists only briefly and only on the user's device. It is never sent to a server.


Private Key Export ​

If a user chooses to export their private key — for example, to migrate to another wallet — the same principle applies. The key is reconstructed and delivered entirely on the user's device. The server provides the encrypted shares, but decryption and assembly happen locally. At no point during export does the private key pass through or become visible to any server.


Passkey Sync and Cross-Device Access ​

Modern platforms — iCloud Keychain on Apple, Google Password Manager on Android — sync passkeys across a user's devices. The secret used for key reconstruction is derived from the synced passkey, so a synced device can usually reproduce the same PRF output and take part in signing without any change to the server-side architecture. This is not guaranteed on every platform: a synced passkey can sign a user in and still fail to approve transactions. Backup Passkey pairs a device explicitly for that case.

Users are informed whether their passkey has been synced to their cloud account, so they always have visibility into the recoverability of their wallet.

PRF support depends on the device, operating system and passkey manager; see What's Supported. A wallet created with a passkey that lacks PRF is signed for inside the enclave instead, which relies on our infrastructure rather than on the user's device.


Comparison to Conventional Wallet Security ​

ModelPrivate key locationWho can access funds
Standard self-custody (seed phrase)Stored by userAnyone with the seed phrase
Exchange / hot wallet custodyStored by operatorOperator (and anyone who compromises operator)
Hardware walletStored on deviceAnyone with physical device + PIN
This systemNever stored wholeRequires user's live authenticator + server infrastructure simultaneously

Summary ​

This hybrid model — combining PRF-based client-side encryption, secret sharing, and an isolated enclave — splits each key into two shares, either of which alone reveals nothing, and locks one of them with a secret only the user's passkey can produce. That secret is the cryptographic anchor of the entire system: what our servers store cannot reconstruct a key or produce a signature without it.