createProofProvider
Midnight.js API Reference v4.0.2
Midnight.js API Reference / @midnight-ntwrk/midnight-js-types / createProofProvider
Function: createProofProvider()
createProofProvider(
provingProvider,costModel?):ProofProvider
Creates a ProofProvider from a ProvingProvider. The returned provider proves transactions using the initial cost model.
Parameters
provingProvider
The underlying proving provider used to generate proofs.
costModel?
CostModel = ...
Optional cost model to use for proof generation. Defaults to the initial cost model if not provided.
Returns
A ProofProvider that delegates proof generation to the given proving provider.