Taquito TypeDocs
    Preparing search index...

    Class InMemorySpendingKey

    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

    Index

    Constructors

    Methods

    • Prepare an unsigned sapling spend description using the spending key

      Parameters

      • parametersSpendProof: ParametersSpendProof
        • saplingContext

          The sapling proving context

        • address

          The address of the input

        • randomCommitmentTrapdoor

          The randomness of the commitment

        • publicKeyReRandomization

          The re-randomization of the public key

        • amount

          The value of the input

        • root

          The root of the merkle tree

        • witness

          The path of the commitment in the tree

      Returns Promise<Omit<SaplingSpendDescription, "signature">>

      The unsigned spend description

    • Sign a sapling spend description

      Parameters

      • parametersSpendSig: ParametersSpendSig
        • publicKeyReRandomization

          The re-randomization of the public key

        • unsignedSpendDescription

          The unsigned Spend description

        • hash

          The data to be signed

      Returns Promise<SaplingTransactionInput>

      The signed spend description