txscript: Remove unused PayToSSRtxSHDirect.

This removes PayToSSRtxSHDirect since it is no longer used by anything
in the repository and is now available via the PayRevokeCommitmentScript
method of the relevant script hash stdaddr address.
This commit is contained in:
Dave Collins 2021-03-16 12:36:46 -05:00
parent 981751c86a
commit 8f7ede4b10
No known key found for this signature in database
GPG Key ID: B8904D9D9C93D1F2

View File

@ -810,15 +810,6 @@ func payToSchnorrPubKeyScript(serializedPubKey []byte) ([]byte, error) {
AddOp(OP_CHECKSIGALT).Script()
}
// PayToSSRtxSHDirect creates a new script to pay a transaction output to a
// script hash, but tags the output with OP_SSRTX. For use in constructing
// valid SSRtx. Unlike PayToSSRtx, this function directly uses the HASH160
// script hash (instead of an address).
func PayToSSRtxSHDirect(sh []byte) ([]byte, error) {
return NewScriptBuilder().AddOp(OP_SSRTX).AddOp(OP_HASH160).
AddData(sh).AddOp(OP_EQUAL).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) {