MCPcopy Index your code
hub / github.com/bcoin-org/bcoin / toString

Method toString

lib/script/script.js:338–345  ·  view source on GitHub ↗

* Convert the script to a bitcoind test string. * @returns {String} Human-readable script code.

()

Source from the content-addressed store, hash-verified

336 */
337
338 toString() {
339 const out = [];
340
341 for (const op of this.code)
342 out.push(op.toFormat());
343
344 return out.join(' ');
345 }
346
347 /**
348 * Format the script as bitcoind asm.

Callers 8

[inspectSymbol]Method · 0.95
toJSONMethod · 0.45
hash160Method · 0.45
sha256Method · 0.45
getStringMethod · 0.45
popStringMethod · 0.45
shiftStringMethod · 0.45
removeStringMethod · 0.45

Calls 3

toFormatMethod · 0.80
joinMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected