ContractOperation
@midnight-ntwrk/compact-runtime v0.9.0
@midnight-ntwrk/compact-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
Constructor
new ContractOperation(): ContractOperation;
Returns
ContractOperation
Properties
verifierKey
verifierKey: Uint8Array;
Methods
serialize()
serialize(networkid): Uint8Array;
Parameters
networkid
Returns
Uint8Array
toString()
toString(compact?): string;
Parameters
compact?
boolean
Returns
string
deserialize()
static deserialize(raw, networkid): ContractOperation;
Parameters
raw
Uint8Array
networkid
Returns
ContractOperation