Skip to content
Tauri

Vault

Defined in: index.ts:333

A key-value storage that allows create, update and delete operations. It does not allow reading the data, so one of the procedures must be used to manipulate the stored data, allowing secure storage of secrets.

  • ProcedureExecutor

new Vault(path, client, name): Vault

Defined in: index.ts:340

string

ClientPath

VaultPath

Vault

ProcedureExecutor.constructor

client: ClientPath

Defined in: index.ts:336


name: VaultPath

Defined in: index.ts:338

The vault name.


path: string

Defined in: index.ts:335

The vault path.


procedureArgs: Record<string, unknown>

Defined in: index.ts:107

ProcedureExecutor.procedureArgs

deriveSLIP10(chain, source, sourceLocation, outputLocation): Promise<Uint8Array<ArrayBufferLike>>

Defined in: index.ts:145

Derive a SLIP10 private key using a seed or key.

number[]

The chain path.

The source type, either ‘Seed’ or ‘Key’.

"Seed" | "Key"

Location

The source location, must be the outputLocation of a previous call to generateSLIP10Seed or deriveSLIP10.

Location

Location of the record where the private key will be stored.

Promise<Uint8Array<ArrayBufferLike>>

ProcedureExecutor.deriveSLIP10


generateBIP39(outputLocation, passphrase?): Promise<Uint8Array<ArrayBufferLike>>

Defined in: index.ts:200

Generate a BIP39 seed.

Location

The location of the record where the BIP39 seed will be stored.

string

The optional mnemonic passphrase.

Promise<Uint8Array<ArrayBufferLike>>

ProcedureExecutor.generateBIP39


generateSLIP10Seed(outputLocation, sizeBytes?): Promise<Uint8Array<ArrayBufferLike>>

Defined in: index.ts:120

Generate a SLIP10 seed for the given location.

Location

Location of the record where the seed will be stored.

number

The size in bytes of the SLIP10 seed.

Promise<Uint8Array<ArrayBufferLike>>

ProcedureExecutor.generateSLIP10Seed


getEd25519PublicKey(privateKeyLocation): Promise<Uint8Array<ArrayBufferLike>>

Defined in: index.ts:223

Gets the Ed25519 public key of a SLIP10 private key.

Location

The location of the private key. Must be the outputLocation of a previous call to deriveSLIP10.

Promise<Uint8Array<ArrayBufferLike>>

A promise resolving to the public key hex string.

2.0.0

ProcedureExecutor.getEd25519PublicKey


insert(recordPath, secret): Promise<void>

Defined in: index.ts:358

Insert a record to this vault.

RecordPath

number[]

Promise<void>


recoverBIP39(mnemonic, outputLocation, passphrase?): Promise<Uint8Array<ArrayBufferLike>>

Defined in: index.ts:175

Store a BIP39 mnemonic.

string

The mnemonic string.

Location

The location of the record where the BIP39 mnemonic will be stored.

string

The optional mnemonic passphrase.

Promise<Uint8Array<ArrayBufferLike>>

ProcedureExecutor.recoverBIP39


remove(location): Promise<void>

Defined in: index.ts:374

Remove a record from the vault.

Location

The record location.

Promise<void>


signEd25519(privateKeyLocation, msg): Promise<Uint8Array<ArrayBufferLike>>

Defined in: index.ts:244

Creates a Ed25519 signature from a private key.

Location

The location of the record where the private key is stored. Must be the outputLocation of a previous call to deriveSLIP10.

string

The message to sign.

Promise<Uint8Array<ArrayBufferLike>>

A promise resolving to the signature hex string.

2.0.0

ProcedureExecutor.signEd25519


© 2025 Tauri Contributors. CC-BY / MIT