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

Method getScripthashInput

lib/script/script.js:2391–2396  ·  view source on GitHub ↗

* Get P2SH redeem script if present. * @returns {Buffer|null}

()

Source from the content-addressed store, hash-verified

2389 */
2390
2391 getScripthashInput() {
2392 if (!this.isScripthashInput())
2393 return null;
2394
2395 return this.getData(-1);
2396 }
2397
2398 /**
2399 * Get coinbase height.

Callers 2

fromWitnessMethod · 0.45
fromInputScriptMethod · 0.45

Calls 2

isScripthashInputMethod · 0.95
getDataMethod · 0.95

Tested by

no test coverage detected