Skip to main content

@midnight-ntwrk/midnight-js-contracts v0.2.5 • API


Midnight.js API Reference v0.2.5 / @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.

Type declaration

insertVerifierKey()

Constructs and submits a transaction that adds a new verifier key to the blockchain for this circuit at this contract's address.

Parameters

newVk: VerifierKey

The new verifier key to add for this circuit.

Returns

Promise<FinalizedTxData>

removeVerifierKey()

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>