txscript: Remove unused payToSchnorrPubKeyScript.

This removes payToSchnorrPubKeyScript since it is no longer used by
anything in the package and is now available via the PaymentScript
method of the relevant stdaddr address.
This commit is contained in:
Dave Collins 2021-03-16 12:36:49 -05:00
parent 7c51528dc2
commit 5cc2db80e4
No known key found for this signature in database
GPG Key ID: B8904D9D9C93D1F2

View File

@ -796,15 +796,6 @@ func payToEdwardsPubKeyScript(serializedPubKey []byte) ([]byte, error) {
AddOp(OP_CHECKSIGALT).Script()
}
// payToSchnorrPubKeyScript creates a new script to pay a transaction output
// to a secp256k1 public key, but to be signed by Schnorr type signature. It
// is expected that the input is a valid pubkey.
func payToSchnorrPubKeyScript(serializedPubKey []byte) ([]byte, error) {
schnorrData := []byte{byte(dcrec.STSchnorrSecp256k1)}
return NewScriptBuilder().AddData(serializedPubKey).AddData(schnorrData).
AddOp(OP_CHECKSIGALT).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) {