ProgramFlatCodec

scalus.uplc.ProgramFlatCodec

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def decodeFlat(encoded: Array[Byte]): DeBruijnedProgram

Decodes Flat-encoded DeBruijnedProgram from bytes

Decodes Flat-encoded DeBruijnedProgram from bytes

Attributes

def encodeFlat(p: Program): Array[Byte]

Encodes Program as Flat encoded bytes after de-bruijning

Encodes Program as Flat encoded bytes after de-bruijning

Attributes

def encodeFlat(deBruijned: DeBruijnedProgram): Array[Byte]

Encodes DeBruijnedProgram as Flat encoded bytes.

Encodes DeBruijnedProgram as Flat encoded bytes.

Attributes

def unsafeEncodeFlat(program: Program): Array[Byte]

Encodes Program as Flat encoded bytes. It assumes the program is correctly de-bruijned. Use it if you know what you're doing.

Encodes Program as Flat encoded bytes. It assumes the program is correctly de-bruijned. Use it if you know what you're doing.

Attributes