payToPubkeyScript creates a new script to pay a transaction output to a public key. It is expected that the input is a valid pubkey.
(serializedPubKey []byte)
| 922 | // payToPubkeyScript creates a new script to pay a transaction output to a |
| 923 | // public key. It is expected that the input is a valid pubkey. |
| 924 | func payToPubKeyScript(serializedPubKey []byte) ([]byte, error) { |
| 925 | return NewScriptBuilder().AddData(serializedPubKey). |
| 926 | AddOp(OP_CHECKSIG).Script() |
| 927 | } |
| 928 | |
| 929 | // PayToAddrScript creates a new script to pay a transaction output to a the |
| 930 | // specified address. |
no test coverage detected
searching dependent graphs…