payToWitnessPubKeyHashScript creates a new script to pay to a version 0 script hash witness program. The passed hash is expected to be valid.
(scriptHash []byte)
| 904 | // payToWitnessPubKeyHashScript creates a new script to pay to a version 0 |
| 905 | // script hash witness program. The passed hash is expected to be valid. |
| 906 | func payToWitnessScriptHashScript(scriptHash []byte) ([]byte, error) { |
| 907 | return NewScriptBuilder().AddOp(OP_0).AddData(scriptHash).Script() |
| 908 | } |
| 909 | |
| 910 | // payToWitnessTaprootScript creates a new script to pay to a version 1 |
| 911 | // (taproot) witness program. The passed hash is expected to be valid. |
no test coverage detected
searching dependent graphs…