From dc6a5910acca4bf9bb0ec8f46ccb10e990136816 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Tue, 16 Mar 2021 12:36:51 -0500 Subject: [PATCH] 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. --- txscript/standard.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/txscript/standard.go b/txscript/standard.go index 8668dd1f..0fcae242 100644 --- a/txscript/standard.go +++ b/txscript/standard.go @@ -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) {