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.
This commit is contained in:
Dave Collins 2021-03-16 12:36:44 -05:00
parent 22de715c18
commit ff99da2fac
No known key found for this signature in database
GPG Key ID: B8904D9D9C93D1F2

View File

@ -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.