@tauri-apps/plugin-stronghold - v2.3.0
    Preparing search index...

    Class Vault

    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.

    Hierarchy

    • ProcedureExecutor
      • Vault
    Index

    Constructors

    Properties

    procedureArgs: Record<string, unknown>
    path: string

    The vault path.

    client: ClientPath
    name: VaultPath

    The vault name.

    Methods

    • Generate a SLIP10 seed for the given location.

      Parameters

      • outputLocation: Location

        Location of the record where the seed will be stored.

      • OptionalsizeBytes: number

        The size in bytes of the SLIP10 seed.

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Derive a SLIP10 private key using a seed or key.

      Parameters

      • 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 Promise<Uint8Array<ArrayBufferLike>>

    • Store a BIP39 mnemonic.

      Parameters

      • mnemonic: string

        The mnemonic string.

      • outputLocation: Location

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

      • Optionalpassphrase: string

        The optional mnemonic passphrase.

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Generate a BIP39 seed.

      Parameters

      • outputLocation: Location

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

      • Optionalpassphrase: string

        The optional mnemonic passphrase.

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Gets the Ed25519 public key of a SLIP10 private key.

      Parameters

      • privateKeyLocation: Location

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

      Returns Promise<Uint8Array<ArrayBufferLike>>

      A promise resolving to the public key hex string.

      2.0.0

    • Creates a Ed25519 signature from a private key.

      Parameters

      • 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 Promise<Uint8Array<ArrayBufferLike>>

      A promise resolving to the signature hex string.

      2.0.0