From ff99da2face29dc6672b80753be4f739c65746a8 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Tue, 16 Mar 2021 12:36:44 -0500 Subject: [PATCH] txscript: Remove unused PayToSSGenPKHDirect. This removes PayToSSGenPKHDirect since it is no longer used by anything in the repository and is now available via the PayVoteCommitmentScript method of the relevant pubkey hash stdaddr address. --- txscript/standard.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/txscript/standard.go b/txscript/standard.go index c3c8e33c..c0ca2f6c 100644 --- a/txscript/standard.go +++ b/txscript/standard.go @@ -810,16 +810,6 @@ func payToSchnorrPubKeyScript(serializedPubKey []byte) ([]byte, error) { AddOp(OP_CHECKSIGALT).Script() } -// PayToSSGenPKHDirect creates a new script to pay a transaction output to a -// public key hash, but tags the output with OP_SSGEN. For use in constructing -// valid SSGen txs. Unlike PayToSSGen, this function directly uses the HASH160 -// pubkeyhash (instead of an address). -func PayToSSGenPKHDirect(pkh []byte) ([]byte, error) { - return NewScriptBuilder().AddOp(OP_SSGEN).AddOp(OP_DUP). - AddOp(OP_HASH160).AddData(pkh).AddOp(OP_EQUALVERIFY). - AddOp(OP_CHECKSIG).Script() -} - // PayToSSRtx creates a new script to pay a transaction output to a // public key hash, but tags the output with OP_SSRTX. For use in constructing // valid SSRtx.