Module ergo_lib_c_core::constant
source · Expand description
Ergo constant values
Structs
- Ergo constant(evaluated) values
Functions
- Extract byte array length, returning error if wrong type
- Decode from base16 encoded serialized ErgoTree
- Create from byte array
- Parse raw [
EcPoint
] value from bytes and make [ProveDlog
] constant - Create from ErgoBox value
- Create from i32 value
- Create from i64
- Encode as Base16-encoded ErgoTree serialized value or return an error if serialization failed
- Convert to serialized bytes. Key assumption: enough memory has been allocated at the address pointed-to by
output
. Useconstant_bytes_len
to determine the length of the byte array. - Extract ErgoBox value, returning error if wrong type
- Extract i32 value, returning error if wrong type
- Extract i64 value, returning error if wrong type
- Returns the debug representation of the type of the constant as string or return an error if serialization failed
- Returns the debug representation of the value of the constant as string or return an error if serialization failed