payToScriptHashScript creates a new script to pay a transaction output to a script hash. It is expected that the input is a valid hash.
(scriptHash []byte)
| 897 | // payToScriptHashScript creates a new script to pay a transaction output to a |
| 898 | // script hash. It is expected that the input is a valid hash. |
| 899 | func payToScriptHashScript(scriptHash []byte) ([]byte, error) { |
| 900 | return NewScriptBuilder().AddOp(OP_HASH160).AddData(scriptHash). |
| 901 | AddOp(OP_EQUAL).Script() |
| 902 | } |
| 903 | |
| 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. |
no test coverage detected
searching dependent graphs…