payToWitnessPubKeyHashScript creates a new script to pay to a version 0 pubkey hash witness program. The passed hash is expected to be valid.
(pubKeyHash []byte)
| 891 | // payToWitnessPubKeyHashScript creates a new script to pay to a version 0 |
| 892 | // pubkey hash witness program. The passed hash is expected to be valid. |
| 893 | func payToWitnessPubKeyHashScript(pubKeyHash []byte) ([]byte, error) { |
| 894 | return NewScriptBuilder().AddOp(OP_0).AddData(pubKeyHash).Script() |
| 895 | } |
| 896 | |
| 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. |
no test coverage detected
searching dependent graphs…