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

Method isPubkeyInput

lib/script/script.js:2239–2246  ·  view source on GitHub ↗

* "Guess" whether the input script is pay-to-pubkey. * This method is not 100% reliable. * @returns {Boolean}

()

Source from the content-addressed store, hash-verified

2237 */
2238
2239 isPubkeyInput() {
2240 if (this.code.length !== 1)
2241 return false;
2242
2243 const size = this.getLength(0);
2244
2245 return size >= 9 && size <= 73;
2246 }
2247
2248 /**
2249 * Get P2PK signature if present.

Callers 2

getInputTypeMethod · 0.95
getPubkeyInputMethod · 0.95

Calls 1

getLengthMethod · 0.95

Tested by

no test coverage detected