@midnight-ntwrk/midnight-js-types v0.2.5 • API
Midnight.js API Reference v0.2.5 / @midnight-ntwrk/midnight-js-types / ProofProvider
Interface: ProofProvider<K>
Interface for a proof server running in a trusted environment.
Type parameters
• 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?: ProveTxConfig
<K
>
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
>