Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

signrawtransaction Node RPC being deprecated #750

Open
tynes opened this issue Apr 5, 2019 · 1 comment
Open

signrawtransaction Node RPC being deprecated #750

tynes opened this issue Apr 5, 2019 · 1 comment
Labels

Comments

@tynes
Copy link
Member

tynes commented Apr 5, 2019

From the Bitcoin v0.17.0 Release Notes

signrawtransaction is deprecated and will be fully removed in v0.18.
To use signrawtransaction in v0.17, restart bitcoind with
-deprecatedrpc=signrawtransaction. Projects should transition to
using signrawtransactionwithkey and signrawtransactionwithwallet
before upgrading to v0.18.

This RPC method looks to spend coins that are already in the mempool. See:

tx.view = await this.mempool.getSpentView(tx);

I'm not sure if its the most useful RPC method. We should consider deprecating it as well

https://bitcoincore.org/en/doc/0.17.0/rpc/rawtransactions/signrawtransaction/

@braydonf
Copy link
Contributor

braydonf commented Apr 8, 2019

As there are separate RPC interfaces for node and wallet in bcoin already, this is pretty much done already. Therefore, having signwithtransactionwithkey and signrawtransactionwithwallet likely isn't a necessary move. Currently signrawtransaction isn't part of the wallet however, and is part of the node.

For the wallet case, air-gapped signing, is where I think this would apply, see #722 which mentions the addition of a wallet command for signing PSBT.

@braydonf braydonf added the rpc label Jul 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
@braydonf @tynes and others