Taquito TypeDocs
    Preparing search index...

    Class InMemoryProvingKey

    holds the proving key, create proof for spend descriptions The class can be instantiated from a proving key or a spending key

    Index

    Constructors

    Methods

    • Prepare an unsigned sapling spend description using the proving key

      Parameters

      • parametersSpendProof: Omit<ParametersSpendProof, "spendingKey">
        • 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 unsinged spend description

    • Allows to instantiate the InMemoryProvingKey from an encrypted/unencrypted spending key

      Parameters

      • spendingKey: string

        Base58Check-encoded spending key

      • Optionalpassword: string

        Optional password to decrypt the spending key

      Returns Promise<InMemoryProvingKey>

      await InMemoryProvingKey.fromSpendingKey('sask27SLmU9herddHz4qFJBLMjWYMbJF8RtS579w9ej9mfCYK7VUdyCJPHK8AzW9zMsopGZEkYeNjAY7Zz1bkM7CGu8eKLzrjBLTMC5wWJDhxiK91ahA29rhDRsHdJDV2u2jFwb2MNUix8JW7sAkAqYVaJpCehTBPgRQ1KqKwqqUaNmuD8kazd4Q8MCWmgbWs21Yuomdqyi9FLigjRp7oY4m5adaVU19Nj1AHvsMY2tePeU2L')