txscript: Remove unused payToPubKeyScript.

This removes payToPubKeyScript since it is no longer used by anything in
the package and is now available via the PaymentScript method of the
relevant stdaddr address.
This commit is contained in:
Dave Collins 2021-03-16 12:36:51 -05:00
parent f05a2ded1a
commit dc6a5910ac
No known key found for this signature in database
GPG Key ID: B8904D9D9C93D1F2

View File

@ -781,13 +781,6 @@ func payToScriptHashScript(scriptHash []byte) ([]byte, error) {
AddOp(OP_EQUAL).Script()
}
// payToPubkeyScript creates a new script to pay a transaction output to a
// public key. It is expected that the input is a valid pubkey.
func payToPubKeyScript(serializedPubKey []byte) ([]byte, error) {
return NewScriptBuilder().AddData(serializedPubKey).
AddOp(OP_CHECKSIG).Script()
}
// GenerateSStxAddrPush generates an OP_RETURN push for SSGen payment addresses in
// an SStx.
func GenerateSStxAddrPush(addr dcrutil.Address, amount dcrutil.Amount, limits uint16) ([]byte, error) {