Sorts the top 2 stack values
()
| 190 | |
| 191 | /// Sorts the top 2 stack values |
| 192 | pub fn u4_sort() -> Script { |
| 193 | script! { |
| 194 | OP_2DUP |
| 195 | OP_MIN |
| 196 | OP_TOALTSTACK |
| 197 | OP_MAX |
| 198 | OP_FROMALTSTACK |
| 199 | } |
| 200 | } |
| 201 | |
| 202 | /// Calculates the logic operation with the given half table, lookup parameter denoting how many elements are there after the table including the two u4 elements |
| 203 | pub fn u4_half_table_operation(lookup: u32) -> Script { |
no outgoing calls
no test coverage detected