Creates a new Plutus script from the RAW bytes of the compiled script.
This does NOT include any CBOR encoding around these bytes (e.g. from "cborBytes" in cardano-cli) If you're creating this from those you should use PlutusV2Script.fromCbor() instead.
Private
#compiledPrivate
#originalComputes the script hash of this Plutus V2 script.
the script hash.
Creates a Core NativeScript object from the current NativeScript object.
The Core NativeScript object.
Static
fromDeserializes the PlutusV2Script from a CBOR byte array.
The new PlutusV2Script instance.
The CBOR encoded PlutusV2Script object.
Static
fromCreates a PlutusV2Script object from the given Core PlutusScript object.
The core PlutusScript object.
Generated using TypeDoc
Plutus' scripts are pieces of code that implement pure functions with True or False outputs. These functions take several inputs such as Datum, Redeemer and the transaction context to decide whether an output can be spent or not.
V2 was introduced in the Vasil hard fork.
The main changes in V2 of Plutus were to the interface to scripts. The ScriptContext was extended to include the following information: