MCPcopy Create free account
hub / github.com/CashScript/cashscript / isPushOpcode

Function isPushOpcode

packages/utils/src/fingerprint.ts:56–58  ·  view source on GitHub ↗
(opcode: Op)

Source from the content-addressed store, hash-verified

54
55// Note: libauth's isPushOperation also matches OP_RESERVED (0x50) — the spec excludes it.
56export 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.

Callers 3

computeBytecodePatternFunction · 0.85
groupByPushRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected