Module ergotree_ir::mir
source · Expand description
Mid-level IR (ErgoTree)
Modules
- AND logical conjunction
- Application of function
- THRESHOLD composition for sigma expressions
- Avl tree data
- Operators in ErgoTree
- Bit inversion operation on numeric type.
- Block of statements ending with an expression
- Embedding of Boolean values to SigmaProp
- Convert byte array to SBigInt
- Convert byte array to SLong
- Calc Blake2b hash
- Calc Sha256 hash
- Collection.append
- Get the collection element by index
- Tests whether a predicate holds for at least one element of this collection
- Collection.filter
- Collection.fold
- Tests whether a predicate holds for all elements of this collection
- Collection.map
- Collection.size
- Collection.slice
- Collection of elements
- Constant(Literal) IR node
- Creation of AVL tree Create an AVL tree
- Create proveDHTuple
- Create proveDlog from GroupElement(PK)
- Decode byte array to EC point
- Extracts context variable as byte array
- Extract register of SELF box as
Coll[Byte]
, deserialize it into Value and inline into executing script. - Numerical downcast Numerical downcast
- Exponentiate op for GroupElement
- IR expression
- Box value
- Box.bytes (serialized box bytes)
- Box.bytesWithoutRef
- Box.creationInfo (height, tx id + box index)
- Box id, Blake2b256 hash of this box’s content, basically equals to
blake2b256(bytes)
- Box register value (Box.RX)
- Box.scriptBytes
- User-defined function
- Extracts Context variable by id and type
- Global variables
- If-else conditional op
- Logical NOT op
- Convert SLong to byte array
- Object method call
- Multiply op for GroupElement
- Negation operation on numeric type.
- Option.get() op
- Returns the Option’s value or error if no value
- Returns false if the option is None, true otherwise.
- Logical OR op
- Object property call
- Select a field of the tuple value
- AND conjunction for sigma propositions
- OR conjunction for sigma propositions
- Extract serialized bytes of a SigmaProp value
- Substitution of constants in serialized sigma expression
- Perform a lookup of key in a tree Lookup in AVL tree
- Tuple of elements
- Traits for IR nodes with one input value(expr)
- Numerical upcast Numerical upcast
- Variable definition
- Variable reference
- Ergo data type
- Byte-wise XOR op
- XOR for collection of booleans XOR for collection of booleans