コンテンツにスキップ

@tauri-apps/plugin-stronghold

このコンテンツはまだ日本語訳がありません。

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L261

new Client(path, name): Client;

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L265

Parameter Type
path string
name ClientPath

Client

Property Type Defined in
name ClientPath Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L263
path string Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L262

getStore(): Store;

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L280

Store

getVault(name): Vault;

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L276

Get a vault by name.

Parameter Type Description
name VaultPath -

Vault


Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L82

new Location(type, payload): Location;

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L86

Parameter Type
type string
payload Record<string, unknown>

Location

Property Type Defined in
payload Record<string, unknown> Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L84
type string Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L83

static counter(vault, counter): Location;

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L98

Parameter Type
vault VaultPath
counter number

Location

static generic(vault, record): Location;

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L91

Parameter Type
vault VaultPath
record RecordPath

Location


Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L285

new Store(path, client): Store;

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L289

Parameter Type
path string
client ClientPath

Store

Property Type Defined in
client ClientPath Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L287
path string Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L286

get(key): Promise<
| Uint8Array<ArrayBufferLike>
| null>;

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L294

Parameter Type
key StoreKey

Promise< | Uint8Array<ArrayBufferLike> | null>

insert(
key,
value,
lifetime?
): Promise<void>;

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L302

Parameter Type
key StoreKey
value number[]
lifetime? Duration

Promise<void>

remove(key): Promise<
| Uint8Array<ArrayBufferLike>
| null>;

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L316

Parameter Type
key StoreKey

Promise< | Uint8Array<ArrayBufferLike> | null>


Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L387

A representation of an access to a stronghold.

Property Type Defined in
path string Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L388

createClient(client): Promise<Client>;

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L428

Parameter Type
client ClientPath

Promise<Client>

loadClient(client): Promise<Client>;

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L421

Parameter Type
client ClientPath

Promise<Client>

save(): Promise<void>;

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L439

Persists the stronghold state to the snapshot.

Promise<void>

unload(): Promise<void>;

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L415

Remove this instance from the cache.

Promise<void>

static load(path, password): Promise<Stronghold>;

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L405

Load the snapshot if it exists (password must match), or start a fresh stronghold instance otherwise.

Parameter Type Description
path string -
password string -

Promise<Stronghold>


Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L333

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;

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L340

Parameter Type
path string
client ClientPath
name VaultPath

Vault

ProcedureExecutor.constructor
Property Type Description Inherited from Defined in
client ClientPath - - Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L336
name VaultPath The vault name. - Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L338
path string The vault path. - Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L335
procedureArgs Record<string, unknown> - ProcedureExecutor.procedureArgs Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L107

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

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L145

Derive a SLIP10 private key using a seed or key.

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.

Promise<Uint8Array<ArrayBufferLike>>

ProcedureExecutor.deriveSLIP10

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

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L200

Generate a BIP39 seed.

Parameter Type Description
outputLocation Location The location of the record where the BIP39 seed will be stored.
passphrase? string The optional mnemonic passphrase.

Promise<Uint8Array<ArrayBufferLike>>

ProcedureExecutor.generateBIP39

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

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L120

Generate a SLIP10 seed for the given location.

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.

Promise<Uint8Array<ArrayBufferLike>>

ProcedureExecutor.generateSLIP10Seed

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

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L223

Gets the Ed25519 public key of a SLIP10 private key.

Parameter Type Description
privateKeyLocation 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>;

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L358

Insert a record to this vault.

Parameter Type
recordPath RecordPath
secret number[]

Promise<void>

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

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L175

Store a BIP39 mnemonic.

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.

Promise<Uint8Array<ArrayBufferLike>>

ProcedureExecutor.recoverBIP39

remove(location): Promise<void>;

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L374

Remove a record from the vault.

Parameter Type Description
location Location The record location.

Promise<void>

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

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L244

Creates a Ed25519 signature from a private key.

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.

Promise<Uint8Array<ArrayBufferLike>>

A promise resolving to the signature hex string.

2.0.0

ProcedureExecutor.signEd25519

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L42

Property Type Defined in
peers Map<string, PeerAddress> Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L43
relays string[] Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L44

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L47

Property Type Defined in
cloneVaultDefault? boolean Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L52
cloneVaultExceptions? Map<VaultPath, boolean> Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L53
readStore? boolean Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L54
useVaultDefault? boolean Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L48
useVaultExceptions? Map<VaultPath, boolean> Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L49
writeStore? boolean Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L55
writeVaultDefault? boolean Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L50
writeVaultExceptions? Map<VaultPath, boolean> Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L51

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L28

Property Type Defined in
maxEstablishedIncoming? number Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L31
maxEstablishedOutgoing? number Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L32
maxEstablishedPerPeer? number Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L33
maxEstablishedTotal? number Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L34
maxPendingIncoming? number Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L29
maxPendingOutgoing? number Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L30

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L75

A duration definition.

Property Type Description Defined in
nanos number The fractional part of this Duration, in nanoseconds. Must be greater or equal to 0 and smaller than 1e+9 (the max number of nanoseoncds in a second) Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L79
secs number The number of whole seconds contained by this Duration. Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L77

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L63

Property Type Defined in
addresses? AddressInfo Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L69
connectionsLimit? ConnectionLimits Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L66
connectionTimeout? Duration Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L65
enableMdns? boolean Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L67
enableRelay? boolean Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L68
peerPermissions? Map<string, Permissions> Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L70
permissionsDefault? Permissions Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L71
requestTimeout? Duration Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L64

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L37

Property Type Defined in
known string[] Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L38
use_relay_fallback boolean Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L39

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L58

Property Type Defined in
default? ClientAccess Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L59
exceptions? Map<VaultPath, ClientAccess> Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L60

type ClientPath =
| string
| Iterable<number>
| ArrayLike<number>
| ArrayBuffer;

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L7


type RecordPath =
| string
| Iterable<number>
| ArrayLike<number>
| ArrayBuffer;

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L17


type StoreKey =
| string
| Iterable<number>
| ArrayLike<number>
| ArrayBuffer;

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L22


type VaultPath =
| string
| Iterable<number>
| ArrayLike<number>
| ArrayBuffer;

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/stronghold/guest-js/index.ts#L12


© 2026 Tauri Contributors. CC-BY / MIT