Skip to main content

ContractOperation

For the complete documentation index, see llms.txt

@midnight-ntwrk/onchain-runtime v3.0.0


@midnight-ntwrk/onchain-runtime / ContractOperation

Class: ContractOperation

An individual operation, or entry point of a contract, consisting primarily of a ZK verifier keys, potentially for different versions of the proving system.

Only the latest available version is exposed to this API.

Note that the serialized form of the key is checked on initialization

Constructors​

new ContractOperation()​

new ContractOperation(): ContractOperation

Returns​

ContractOperation

Properties​

verifierKey​

verifierKey: Uint8Array;

Methods​

serialize()​

serialize(): Uint8Array

Returns​

Uint8Array


toString()​

toString(compact?): string

Parameters​

compact?​

boolean

Returns​

string


deserialize()​

static deserialize(raw): ContractOperation

Parameters​

raw​

Uint8Array

Returns​

ContractOperation