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.