* Format the script as bitcoind asm. * @param {Boolean?} decode - Attempt to decode hash types. * @returns {String} Human-readable script.
(decode)
| 351 | */ |
| 352 | |
| 353 | toASM(decode) { |
| 354 | if (this.isNulldata()) |
| 355 | decode = false; |
| 356 | |
| 357 | const out = []; |
| 358 | |
| 359 | for (const op of this.code) |
| 360 | out.push(op.toASM(decode)); |
| 361 | |
| 362 | return out.join(' '); |
| 363 | } |
| 364 | |
| 365 | /** |
| 366 | * Re-encode the script internally. Useful if you |
nothing calls this directly
no test coverage detected