@tauri-apps/plugin-stronghold
Classes
Section titled “Classes”Client
Section titled “Client”Source: undefined
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Client(path, name): Client;Source: undefined
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
path |
string |
name |
ClientPath |
Returns
Section titled “Returns”Properties
Section titled “Properties”| Property | Type | Defined in |
|---|---|---|
name |
ClientPath |
Source: undefined |
path |
string |
Source: undefined |
Methods
Section titled “Methods”getStore()
Section titled “getStore()”getStore(): Store;Source: undefined
Returns
Section titled “Returns”getVault()
Section titled “getVault()”getVault(name): Vault;Source: undefined
Get a vault by name.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
name |
VaultPath |
- |
Returns
Section titled “Returns”Location
Section titled “Location”Source: undefined
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Location(type, payload): Location;Source: undefined
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
type |
string |
payload |
Record<string, unknown> |
Returns
Section titled “Returns”Properties
Section titled “Properties”| Property | Type | Defined in |
|---|---|---|
payload |
Record<string, unknown> |
Source: undefined |
type |
string |
Source: undefined |
Methods
Section titled “Methods”counter()
Section titled “counter()”static counter(vault, counter): Location;Source: undefined
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
vault |
VaultPath |
counter |
number |
Returns
Section titled “Returns”generic()
Section titled “generic()”static generic(vault, record): Location;Source: undefined
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
vault |
VaultPath |
record |
RecordPath |
Returns
Section titled “Returns”Source: undefined
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Store(path, client): Store;Source: undefined
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
path |
string |
client |
ClientPath |
Returns
Section titled “Returns”Properties
Section titled “Properties”| Property | Type | Defined in |
|---|---|---|
client |
ClientPath |
Source: undefined |
path |
string |
Source: undefined |
Methods
Section titled “Methods”get(key): Promise< | Uint8Array<ArrayBufferLike>| null>;Source: undefined
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
key |
StoreKey |
Returns
Section titled “Returns”Promise<
| Uint8Array<ArrayBufferLike>
| null>
insert()
Section titled “insert()”insert( key, value, lifetime?): Promise<void>;Source: undefined
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
key |
StoreKey |
value |
number[] |
lifetime? |
Duration |
Returns
Section titled “Returns”Promise<void>
remove()
Section titled “remove()”remove(key): Promise< | Uint8Array<ArrayBufferLike>| null>;Source: undefined
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
key |
StoreKey |
Returns
Section titled “Returns”Promise<
| Uint8Array<ArrayBufferLike>
| null>
Stronghold
Section titled “Stronghold”Source: undefined
A representation of an access to a stronghold.
Properties
Section titled “Properties”| Property | Type | Defined in |
|---|---|---|
path |
string |
Source: undefined |
Methods
Section titled “Methods”createClient()
Section titled “createClient()”createClient(client): Promise<Client>;Source: undefined
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
client |
ClientPath |
Returns
Section titled “Returns”loadClient()
Section titled “loadClient()”loadClient(client): Promise<Client>;Source: undefined
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
client |
ClientPath |
Returns
Section titled “Returns”save()
Section titled “save()”save(): Promise<void>;Source: undefined
Persists the stronghold state to the snapshot.
Returns
Section titled “Returns”Promise<void>
unload()
Section titled “unload()”unload(): Promise<void>;Source: undefined
Remove this instance from the cache.
Returns
Section titled “Returns”Promise<void>
load()
Section titled “load()”static load(path, password): Promise<Stronghold>;Source: undefined
Load the snapshot if it exists (password must match), or start a fresh stronghold instance otherwise.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
path |
string |
- |
password |
string |
- |
Returns
Section titled “Returns”Source: undefined
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.
Extends
Section titled “Extends”ProcedureExecutor
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Vault( path, client, name): Vault;Source: undefined
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
path |
string |
client |
ClientPath |
name |
VaultPath |
Returns
Section titled “Returns”Overrides
Section titled “Overrides”ProcedureExecutor.constructorProperties
Section titled “Properties”| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
client |
ClientPath |
- | - | Source: undefined |
name |
VaultPath |
The vault name. | - | Source: undefined |
path |
string |
The vault path. | - | Source: undefined |
procedureArgs |
Record<string, unknown> |
- | ProcedureExecutor.procedureArgs |
Source: undefined |
Methods
Section titled “Methods”deriveSLIP10()
Section titled “deriveSLIP10()”deriveSLIP10( chain, source, sourceLocation, outputLocation): Promise<Uint8Array<ArrayBufferLike>>;Source: undefined
Derive a SLIP10 private key using a seed or key.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
chain |
number[] |
The chain path. |
source |
"Seed" | "Key" |
The source type, either ‘Seed’ or ‘Key’. |
sourceLocation |
Location |
The source location, must be the outputLocation of a previous call to generateSLIP10Seed or deriveSLIP10. |
outputLocation |
Location |
Location of the record where the private key will be stored. |
Returns
Section titled “Returns”Promise<Uint8Array<ArrayBufferLike>>
Inherited from
Section titled “Inherited from”ProcedureExecutor.deriveSLIP10generateBIP39()
Section titled “generateBIP39()”generateBIP39(outputLocation, passphrase?): Promise<Uint8Array<ArrayBufferLike>>;Source: undefined
Generate a BIP39 seed.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
outputLocation |
Location |
The location of the record where the BIP39 seed will be stored. |
passphrase? |
string |
The optional mnemonic passphrase. |
Returns
Section titled “Returns”Promise<Uint8Array<ArrayBufferLike>>
Inherited from
Section titled “Inherited from”ProcedureExecutor.generateBIP39generateSLIP10Seed()
Section titled “generateSLIP10Seed()”generateSLIP10Seed(outputLocation, sizeBytes?): Promise<Uint8Array<ArrayBufferLike>>;Source: undefined
Generate a SLIP10 seed for the given location.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
outputLocation |
Location |
Location of the record where the seed will be stored. |
sizeBytes? |
number |
The size in bytes of the SLIP10 seed. |
Returns
Section titled “Returns”Promise<Uint8Array<ArrayBufferLike>>
Inherited from
Section titled “Inherited from”ProcedureExecutor.generateSLIP10SeedgetEd25519PublicKey()
Section titled “getEd25519PublicKey()”getEd25519PublicKey(privateKeyLocation): Promise<Uint8Array<ArrayBufferLike>>;Source: undefined
Gets the Ed25519 public key of a SLIP10 private key.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
privateKeyLocation |
Location |
The location of the private key. Must be the outputLocation of a previous call to deriveSLIP10. |
Returns
Section titled “Returns”Promise<Uint8Array<ArrayBufferLike>>
A promise resolving to the public key hex string.
2.0.0
Inherited from
Section titled “Inherited from”ProcedureExecutor.getEd25519PublicKeyinsert()
Section titled “insert()”insert(recordPath, secret): Promise<void>;Source: undefined
Insert a record to this vault.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
recordPath |
RecordPath |
secret |
number[] |
Returns
Section titled “Returns”Promise<void>
recoverBIP39()
Section titled “recoverBIP39()”recoverBIP39( mnemonic, outputLocation, passphrase?): Promise<Uint8Array<ArrayBufferLike>>;Source: undefined
Store a BIP39 mnemonic.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
mnemonic |
string |
The mnemonic string. |
outputLocation |
Location |
The location of the record where the BIP39 mnemonic will be stored. |
passphrase? |
string |
The optional mnemonic passphrase. |
Returns
Section titled “Returns”Promise<Uint8Array<ArrayBufferLike>>
Inherited from
Section titled “Inherited from”ProcedureExecutor.recoverBIP39remove()
Section titled “remove()”remove(location): Promise<void>;Source: undefined
Remove a record from the vault.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
location |
Location |
The record location. |
Returns
Section titled “Returns”Promise<void>
signEd25519()
Section titled “signEd25519()”signEd25519(privateKeyLocation, msg): Promise<Uint8Array<ArrayBufferLike>>;Source: undefined
Creates a Ed25519 signature from a private key.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
privateKeyLocation |
Location |
The location of the record where the private key is stored. Must be the outputLocation of a previous call to deriveSLIP10. |
msg |
string |
The message to sign. |
Returns
Section titled “Returns”Promise<Uint8Array<ArrayBufferLike>>
A promise resolving to the signature hex string.
2.0.0
Inherited from
Section titled “Inherited from”ProcedureExecutor.signEd25519Interfaces
Section titled “Interfaces”AddressInfo
Section titled “AddressInfo”Source: undefined
Properties
Section titled “Properties”| Property | Type | Defined in |
|---|---|---|
peers |
Map<string, PeerAddress> |
Source: undefined |
relays |
string[] |
Source: undefined |
ClientAccess
Section titled “ClientAccess”Source: undefined
Properties
Section titled “Properties”| Property | Type | Defined in |
|---|---|---|
cloneVaultDefault? |
boolean |
Source: undefined |
cloneVaultExceptions? |
Map<VaultPath, boolean> |
Source: undefined |
readStore? |
boolean |
Source: undefined |
useVaultDefault? |
boolean |
Source: undefined |
useVaultExceptions? |
Map<VaultPath, boolean> |
Source: undefined |
writeStore? |
boolean |
Source: undefined |
writeVaultDefault? |
boolean |
Source: undefined |
writeVaultExceptions? |
Map<VaultPath, boolean> |
Source: undefined |
ConnectionLimits
Section titled “ConnectionLimits”Source: undefined
Properties
Section titled “Properties”Duration
Section titled “Duration”Source: undefined
A duration definition.
Properties
Section titled “Properties”NetworkConfig
Section titled “NetworkConfig”Source: undefined
Properties
Section titled “Properties”| Property | Type | Defined in |
|---|---|---|
addresses? |
AddressInfo |
Source: undefined |
connectionsLimit? |
ConnectionLimits |
Source: undefined |
connectionTimeout? |
Duration |
Source: undefined |
enableMdns? |
boolean |
Source: undefined |
enableRelay? |
boolean |
Source: undefined |
peerPermissions? |
Map<string, Permissions> |
Source: undefined |
permissionsDefault? |
Permissions |
Source: undefined |
requestTimeout? |
Duration |
Source: undefined |
PeerAddress
Section titled “PeerAddress”Source: undefined
Properties
Section titled “Properties”| Property | Type | Defined in |
|---|---|---|
known |
string[] |
Source: undefined |
use_relay_fallback |
boolean |
Source: undefined |
Permissions
Section titled “Permissions”Source: undefined
Properties
Section titled “Properties”| Property | Type | Defined in |
|---|---|---|
default? |
ClientAccess |
Source: undefined |
exceptions? |
Map<VaultPath, ClientAccess> |
Source: undefined |
Type Aliases
Section titled “Type Aliases”ClientPath
Section titled “ClientPath”type ClientPath = | string | Iterable<number> | ArrayLike<number> | ArrayBuffer;Source: undefined
RecordPath
Section titled “RecordPath”type RecordPath = | string | Iterable<number> | ArrayLike<number> | ArrayBuffer;Source: undefined
StoreKey
Section titled “StoreKey”type StoreKey = | string | Iterable<number> | ArrayLike<number> | ArrayBuffer;Source: undefined
VaultPath
Section titled “VaultPath”type VaultPath = | string | Iterable<number> | ArrayLike<number> | ArrayBuffer;Source: undefined
© 2026 Tauri Contributors. CC-BY / MIT