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

Method fromItems

lib/script/script.js:217–226  ·  view source on GitHub ↗

* Inject data from stack items. * @private * @param {Buffer[]} items * @returns {Script}

(items)

Source from the content-addressed store, hash-verified

215 */
216
217 fromItems(items) {
218 assert(Array.isArray(items));
219
220 this.clear();
221
222 for (const item of items)
223 this.pushData(item);
224
225 return this.compile();
226 }
227
228 /**
229 * Instantiate script from stack items.

Callers 6

fromStackMethod · 0.95
scriptInputMethod · 0.45
toFilterMethod · 0.45
mempool-test.jsFile · 0.45
chain-test.jsFile · 0.45

Calls 3

clearMethod · 0.95
pushDataMethod · 0.95
compileMethod · 0.95

Tested by

no test coverage detected