CircuitMaintenanceTxInterface
Midnight.js API Reference v2.0.2
Midnight.js API Reference / @midnight-ntwrk/midnight-js-contracts / CircuitMaintenanceTxInterface
Type Alias: CircuitMaintenanceTxInterface
CircuitMaintenanceTxInterface =
object
An interface for creating maintenance transactions for a specific circuit defined in a given contract.
Methods
insertVerifierKey()
insertVerifierKey(
newVk):Promise<FinalizedTxData>
Constructs and submits a transaction that adds a new verifier key to the blockchain for this circuit at this contract's address.
Parameters
newVk
The new verifier key to add for this circuit.
Returns
Promise<FinalizedTxData>
removeVerifierKey()
removeVerifierKey():
Promise<FinalizedTxData>
Constructs and submits a transaction that removes the current verifier key stored on the blockchain for this circuit at this contract's address.
Returns
Promise<FinalizedTxData>