Skip to main content
Engineering

How Rockpile protects your keys and local data

Inside Rockpile’s encryption design: separate keys, a native signing process, and the limits of protection on a desktop computer.

A wallet has more to protect than the key that authorizes a payment. Transaction history can reveal who you pay. Research can reveal what you intend to buy. A backup can contain enough information to reconstruct the entire portfolio.

Rockpile encrypts this local data and places software-wallet key operations inside a separate native process. Understanding that design starts with two questions: what can an attacker obtain from stored files, and which parts of the running application can access secrets?

Start with the threat

Consider a laptop that is lost while Rockpile is locked. Someone copies its application files. The protection here must come from encryption: hiding a folder or requiring a login in the interface does not stop someone reading the disk directly.

Now consider an unlocked computer whose operating system is compromised. That is a different threat. Encryption at rest cannot prevent a hostile system from observing information as you use it or interfering with what you see. Rockpile’s process boundaries reduce exposure inside the application; they do not make a compromised operating system trustworthy.

A hierarchy of keys, with separate purposes

A vault is the encrypted storage and key material for a portfolio or the app’s global records. Each vault has an independently generated 256-bit root key. That root protects separate keys for the database, wallets, backups, stored credentials, and audit records. Wallets and credentials then receive individual data-encryption keys.

Vault root key
    ├── Database key
    ├── Wallet wrapping key
    ├── Backup wrapping key
    ├── Credential wrapping key
    └── Audit authentication key

A key that protects another key is a wrapping key. Rockpile uses AES-256-KWP for that wrapping operation. Wallet and credential values use AES-256-GCM, which encrypts the contents and detects changes to the ciphertext or its authenticated context. Here, authentication means checking the encrypted record’s integrity, not identifying a person.

The encrypted value is bound to context identifying its vault and purpose. For example, copying wallet A’s encrypted value into wallet B’s record does not make it valid wallet B data. Decryption checks the record’s context; a mismatch is an error.

Separate keys make these responsibilities explicit. They also allow recovery credentials to change by rewrapping keys, without rewriting every encrypted record. They do not make exposure of the root key harmless: the root remains a sensitive part of the hierarchy.

The database is encrypted too

Portfolio records live in SQLCipher databases managed by the native broker. This includes local history, research, settings, and wallet metadata. The encrypted database covers more than a collection of individually encrypted private-key fields.

SQLCipher provides page-level database encryption and authentication; its design documentation explains the underlying storage format. Rockpile’s wallet envelopes and backup archives use separate formats, so “AES-256-GCM” should not be read as a description of every database page.

Portfolio names are stored inside the encrypted registry. Storage paths use opaque identifiers, keeping a descriptive name out of an otherwise visible folder path. Encryption still exposes some information about files, including their existence and size.

The interface does not hold the signing key

The interface requests a named operation through a restricted application bridge. Software-wallet enrollment and signing run in rockpile-vault-broker, a separate native process.

For signing, the broker opens the required wallet material, checks that it derives the expected public address, signs the bounded message, and returns the signature. It does not return the wallet’s private key to the interface.

Root-key buffers are locked in memory to keep them out of operating-system swap. Sensitive values are zeroized—overwritten when released—to reduce leftover plaintext. These measures limit exposure during use; they do not prevent a compromised operating system from inspecting an active process.

Locking the application closes database handles and terminates the broker. System lock, suspend, and portfolio changes also participate in tearing down sensitive state. This matters because an application that merely covers its screen could leave its signing process active underneath. Read what locking changes for the effects on pending authorization and protected background work.

Authorization and recovery have different jobs

Normal access uses a separately generated device key held through the operating system’s secret store. On macOS, that key is kept in the non-synchronizing Data Protection Keychain. It provides a device-specific way to unlock the vault without entering the Recovery Key every time.

A passkey or operating-system approval establishes permission for a session or sensitive action. It is not the database encryption key. Keeping authorization separate from encryption means that an approval prompt does not itself contain the material needed to decrypt a copied portfolio.

The 24-word Rockpile Recovery Key is independently generated recovery material. It protects access to the encrypted portfolio through a separate recovery path. It is also distinct from an individual wallet’s seed phrase. The backup design explains why you need both the matching words and an encrypted backup file.

Encryption protects stored records; the native process restricts how software keys are used. The next question is whether a signing request represents the payment you intended. That is the job of transaction review.