(opcode: Op)
| 54 | |
| 55 | // Note: libauth's isPushOperation also matches OP_RESERVED (0x50) — the spec excludes it. |
| 56 | export function isPushOpcode(opcode: Op): boolean { |
| 57 | return isPushOperation(opcode) && opcode !== Op.OP_RESERVED; |
| 58 | } |
| 59 | |
| 60 | // Encode a push count using the smallest possible push encoding. |
| 61 | // libauth's encodeDataPush minimally encodes VM Numbers in the -1..16 range as OP_N. |
no outgoing calls
no test coverage detected