Midnight.js API Reference v1.0.0
Midnight.js API Reference / @midnight-ntwrk/midnight-js-types / ProofProvider
Interface: ProofProvider<K>
Interface for a proof server running in a trusted environment.
Type Parameters
K
K
extends string
The type of the circuit ID used by the provider.
Methods
proveTx()
proveTx(
tx
,proveTxConfig
?):Promise
<UnbalancedTransaction
>
Creates call proofs for an unproven transaction. The resulting transaction is unbalanced and must be balanced using the WalletProvider interface.
Parameters
tx
UnprovenTransaction
The transaction to be proved. Prior to version 1.0.0, unproven transactions always only contain a single contract call.
proveTxConfig?
The configuration for the proof request to the proof provider. Empty in case a deploy transaction is being proved with no user-defined timeout.
Returns
Promise
<UnbalancedTransaction
>