Midnight.js API Reference v1.0.0
Midnight.js API Reference / @midnight-ntwrk/midnight-js-contracts / submitRemoveVerifierKeyTx
Function: submitRemoveVerifierKeyTx()
submitRemoveVerifierKeyTx(
providers
,contractAddress
,circuitId
):Promise
<FinalizedTxData
>
Constructs and submits a transaction that removes the current verifier key stored on the blockchain for the given circuit ID at the given contract address.
Parameters
providers
The providers to use to manage the transaction lifecycle.
contractAddress
string
The address of the contract containing the circuit for which the verifier key should be removed.
circuitId
string
The circuit for which the verifier key should be removed.
Returns
Promise
<FinalizedTxData
>
A promise that resolves with the finalized transaction data, or rejects if an error occurs along the way.
TODO: We'll likely want to modify ZKConfigProvider provider so that the verifier keys are automatically rotated in this function. This likely involves storing key versions along with keys in ZKConfigProvider. By default, artifacts for the latest version would be fetched to build transactions.