Skip to main content

createProofProvider

For the complete documentation index, see llms.txt

Midnight.js API Reference v4.0.4


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​

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​

ProofProvider

A ProofProvider that delegates proof generation to the given proving provider.