The top stack item is multiplied by 256
()
| 104 | |
| 105 | /// The top stack item is multiplied by 256 |
| 106 | pub fn OP_256MUL() -> Script { |
| 107 | script! { |
| 108 | OP_DUP OP_ADD OP_DUP OP_ADD |
| 109 | OP_DUP OP_ADD OP_DUP OP_ADD |
| 110 | OP_DUP OP_ADD OP_DUP OP_ADD |
| 111 | OP_DUP OP_ADD OP_DUP OP_ADD |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | pub fn OP_NDUP(n: usize) -> Script { |
| 116 | let times_3_dup = if n > 3 { (n - 3) / 3 } else { 0 }; |
nothing calls this directly
no outgoing calls
no test coverage detected