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:
parent
22de715c18
commit
ff99da2fac
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user