* "Guess" whether the input script is pay-to-pubkey. * This method is not 100% reliable. * @returns {Boolean}
()
| 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. |
no test coverage detected