ProgramFlatCodec
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ProgramFlatCodec.type
Members list
Type members
Classlikes
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Value members
Concrete methods
Decodes Flat-encoded DeBruijnedProgram from bytes.
Decodes Flat-encoded DeBruijnedProgram from bytes, returning any remaining bytes that were not part of the program.
Decodes Flat-encoded DeBruijnedProgram from bytes, returning any remaining bytes that were not part of the program.
Attributes
- Throws
-
IllegalArgumentException
Encodes DeBruijnedProgram as Flat encoded bytes.
Rejects a program that declares a version below 1.1.0 but contains constr/case.
Rejects a program that declares a version below 1.1.0 but contains constr/case.
This is the check the Plutus decoder makes ("'constr' is not allowed before version 1.1.0"), applied on both sides of this codec: on encode, so Scalus cannot produce bytes the ledger will reject; on decode, so Scalus does not accept bytes the ledger would not.
Attributes
- Throws
-
IllegalArgumentException
if the program version is below 1.1.0 and the term uses
constrorcase
Concrete fields
The first UPLC version that can carry constr/case terms.
The first UPLC version that can carry constr/case terms.