(script: Script)
| 124 | } |
| 125 | |
| 126 | export function calculateBytesize(script: Script): number { |
| 127 | return scriptToBytecode(script).byteLength; |
| 128 | } |
| 129 | |
| 130 | // For encoding OP_RETURN data (doesn't require BIP62.3 / MINIMALDATA) |
| 131 | export function encodeNullDataScript(chunks: OpOrData[]): Uint8Array { |
no test coverage detected