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

Method getPubkeyInput

lib/script/script.js:2253–2258  ·  view source on GitHub ↗

* Get P2PK signature if present. * @returns {Buffer|null}

()

Source from the content-addressed store, hash-verified

2251 */
2252
2253 getPubkeyInput() {
2254 if (!this.isPubkeyInput())
2255 return null;
2256
2257 return this.getData(0);
2258 }
2259
2260 /**
2261 * "Guess" whether the input script is pay-to-pubkeyhash.

Callers

nothing calls this directly

Calls 2

isPubkeyInputMethod · 0.95
getDataMethod · 0.95

Tested by

no test coverage detected