Alternative outputs (not only wp2pkh)
create_spending_tx uses the public key of the redeeming party to build the output, maybe the redeeming party wants to redeem to another address, not necessarily on the same key as the one used in the script.
create_spending_tx uses the public key of the redeeming party to build the output, maybe the redeeming party wants to redeem to another address, not necessarily on the same key as the one used in the script.