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:
parent
7c51528dc2
commit
5cc2db80e4
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user