ergotree-ir 0.22.0

ErgoTree IR, serialization
Documentation
//! Mid-level IR (ErgoTree)

pub mod and;
pub mod apply;
pub mod atleast;
/// Avl tree data
pub mod avl_tree_data;
pub mod bin_op;
/// Bit inversion operation on numeric type.
pub mod bit_inversion;
pub mod block;
pub mod bool_to_sigma;
pub mod byte_array_to_bigint;
pub mod byte_array_to_long;
/// Calc Blake2b hash
pub mod calc_blake2b256;
/// Calc Sha256 hash
pub mod calc_sha256;
/// Collection.append
pub mod coll_append;
/// Get the collection element by index
pub mod coll_by_index;
/// Tests whether a predicate holds for at least one element of this collection
pub mod coll_exists;
/// Collection.filter
pub mod coll_filter;
/// Collection.fold
pub mod coll_fold;
/// Tests whether a predicate holds for all elements of this collection
pub mod coll_forall;
/// Collection.map
pub mod coll_map;
/// Collection.size
pub mod coll_size;
/// Collection.slice
pub mod coll_slice;
/// Collection of elements
pub mod collection;
pub mod constant;
/// Creation of AVL tree
pub mod create_avl_tree;
/// Create proveDHTuple
pub mod create_prove_dh_tuple;
/// Create proveDlog from GroupElement(PK)
pub mod create_provedlog;
pub mod decode_point;
pub mod deserialize_context;
pub mod deserialize_register;
/// Numerical downcast
pub mod downcast;
/// Exponentiate op for GroupElement
pub mod exponentiate;
pub mod expr;
/// Box value
pub mod extract_amount;
/// Box.bytes (serialized box bytes)
pub mod extract_bytes;
/// Box.bytesWithoutRef
pub mod extract_bytes_with_no_ref;
/// Box.creationInfo (height, tx id + box index)
pub mod extract_creation_info;
/// Box id, Blake2b256 hash of this box's content, basically equals to `blake2b256(bytes)`
pub mod extract_id;
/// Box register value (Box.RX)
pub mod extract_reg_as;
/// Box.scriptBytes
pub mod extract_script_bytes;
/// User-defined function
pub mod func_value;
pub mod get_var;
pub mod global_vars;
/// If-else conditional op
pub mod if_op;
/// Logical NOT op
pub mod logical_not;
pub mod long_to_byte_array;
/// Object method call
pub mod method_call;
/// Multiply op for GroupElement
pub mod multiply_group;
/// Negation operation on numeric type.
pub mod negation;
/// Option.get() op
pub mod option_get;
/// Returns the Option's value or error if no value
pub mod option_get_or_else;
/// Returns false if the option is None, true otherwise.
pub mod option_is_defined;
/// Logical OR op
pub mod or;
/// Object property call
pub mod property_call;
/// Select a field of the tuple value
pub mod select_field;
pub mod sigma_and;
pub mod sigma_or;
/// Extract serialized bytes of a SigmaProp value
pub mod sigma_prop_bytes;
pub mod subst_const;
/// Perform a lookup of key in a tree
pub mod tree_lookup;
/// Tuple of elements
pub mod tuple;
pub mod unary_op;
/// Numerical upcast
pub mod upcast;
/// Variable definition
pub mod val_def;
/// Variable reference
pub mod val_use;
pub mod value;
/// Byte-wise XOR op
pub mod xor;
/// XOR for collection of booleans
pub mod xor_of;