PlutusV4

scalus.cardano.ledger.Script.PlutusV4
See thePlutusV4 companion object
final case class PlutusV4(script: ByteString) extends PlutusScript

Plutus V4 script (introduced in the Dijkstra hard fork).

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait PlutusScript
trait Script
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Get script language

Get script language

Attributes

Inherited methods

Get the De Bruijn-indexed program, preserving source annotations when available.

Get the De Bruijn-indexed program, preserving source annotations when available.

A script decoded from CBOR has no annotations to preserve, so it is decoded straight to the De Bruijn form the evaluator runs, without a round trip through named variables. Bytes after the script's CBOR byte string are treated as in program.

Attributes

Inherited from:
PlutusScript
def isWellFormed(majorProtocolVersion: MajorProtocolVersion): Boolean

Attributes

Inherited from:
PlutusScript
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Get the program, preferring the cached in-memory version over CBOR deserialization.

Get the program, preferring the cached in-memory version over CBOR deserialization.

Bytes after the script's CBOR byte string are ignored in a Plutus V1 or V2 script, as the ledger does, and fail the decoding in later languages. Bytes after the program inside the byte string fail the decoding in every language.

Attributes

Inherited from:
PlutusScript
def toHex: String

Attributes

Inherited from:
PlutusScript

Concrete fields

Get the script hash for this Plutus V4 script

Get the script hash for this Plutus V4 script

Attributes