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