MCPcopy
hub / github.com/bcoin-org/bcoin / fromOp

Method fromOp

lib/script/opcode.js:416–424  ·  view source on GitHub ↗

* Instantiate an opcode from a number opcode. * @param {Number} op * @returns {Opcode}

(op)

Source from the content-addressed store, hash-verified

414 */
415
416 static fromOp(op) {
417 assert(typeof op === 'number');
418
419 const cached = opCache[op];
420
421 assert(cached, 'Bad opcode.');
422
423 return cached;
424 }
425
426 /**
427 * Instantiate a pushdata opcode from

Callers 12

fromDataMethod · 0.95
fromPushMethod · 0.95
fromSmallMethod · 0.95
fromIntMethod · 0.95
fromSymbolMethod · 0.95
fromPubkeyMethod · 0.80
fromPubkeyhashMethod · 0.80
fromScripthashMethod · 0.80
setOpMethod · 0.80
pushOpMethod · 0.80
unshiftOpMethod · 0.80
insertOpMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected