Vaults

To organise your data you will first need a container, in Tusky we call it a vault.

You can create public and private vaults and invite members to join and share your data with them.

Create public vaultCopied!

const { id: vaultId } = await tusky.vault.create("My public vault", { encrypted: false });

Create private vaultCopied!

All private vaults on Tusky are end-to-end encrypted, hence to create a private vault, the encryption context is required, you can learn how to setup the encryption context in the Encryption page.

await tusky.addEncrypter({ password: "your-account-password-here" });
const { id: vaultId } = await tusky.vault.create("My private vault", { encrypted: true });

List user vaultsCopied!

const vaults = await tusky.vault.listAll();