Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InMemorySpendingKey

description

holds the spending key, create proof and signature for spend descriptions can instantiate from mnemonic word list or decrypt a encrypted spending key with access to instantiate a InMemoryViewingKey

Hierarchy

  • InMemorySpendingKey

Index

Constructors

constructor

Methods

getProvingKey

  • getProvingKey(): Promise<string>

getSaplingViewingKeyProvider

prepareSpendDescription

  • prepareSpendDescription(parametersSpendProof: ParametersSpendProof): Promise<Pick<SaplingSpendDescription, "rtAnchor" | "commitmentValue" | "nullifier" | "publicKeyReRandomization" | "proof">>
  • description

    Prepare an unsigned sapling spend description using the spending key

    Parameters

    • parametersSpendProof: ParametersSpendProof

    Returns Promise<Pick<SaplingSpendDescription, "rtAnchor" | "commitmentValue" | "nullifier" | "publicKeyReRandomization" | "proof">>

    The unsigned spend description

signSpendDescription

  • signSpendDescription(parametersSpendSig: ParametersSpendSig): Promise<SaplingTransactionInput>

Static fromMnemonic

Generated using TypeDoc