Skip to main content
Use the data vault when you want to encrypt KV values before storage instead of sending plain TinyCloud KV. This page describes the wallet-derived flow; network-backed vaults use a separate node-mediated key-release path. Check which mode your app configures before assuming only its endpoints hold keys. For both trust boundaries and the public/primary space split, see Data Vault.

Unlock the vault

The manifest declares the permissions the unlock, store and read examples use: reading and writing vault entries under medical/, and decrypting with your default encryption network, which vault.get needs. See Declare what your app uses. In wallet-derived mode, unlocking derives encryption keys locally. The same wallet signing material produces the same vault keys again later, so the encrypted data remains readable across sessions. This statement does not describe network-backed key custody.

Store and read values

Use list(), head(), and delete() the same way you would on a normal KV store. The storage layer receives ciphertext and metadata; authorized decrypting clients can still see and retain plaintext.

Share encrypted data

To share a vault entry, grant the recipient access to the entry key and add a delegation for the same path scope.

CLI

All tc vault commands require --private-key <hex> or TC_PRIVATE_KEY, because the CLI resolves a private key before running vault operations.

When to use this page

Use this flow for wallet-derived encrypted KV and review key custody before using it for sensitive data. If you only need plain TinyCloud KV, use the KV guide instead.

Source note

The vault API names and the unlock/share flow come from the JS SDK and its WASM bindings. This guide stays on the usage path and leaves the trust model to the concept page.