-
Notifications
You must be signed in to change notification settings - Fork 35.6k
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
Add HTTP REST, wget(1)-friendly crypted key dump via GET /wallet-ckeys.json #1982
Conversation
I like the idea of exposing certain data via HTTP instead of as RPC calls. Need to think about the format, though. |
Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/83dd3f31e230ce8b8cc50026454f5e9b9a2b36a6 for binaries and test log. |
OK on the first two commits. What is the use case for dumping crypted wallet keys? |
The base bits of pull req #1982.
Rebased. @gavinandresen wallet backup, that doesn't need to be encrypted yet again. @sipa has a fair point on format, though. |
Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/0a60c82ad6f6acdd899825a5db65b2b1d2f7d841 for binaries and test log. |
Closing. Not much interest, and wallet dump format still an open question. Was originally at @KJJ request. |
Previously, JSON-RPC clients accessed URI "/", and the JSON-RPC server did not care about the URI at all, and would accept any URI as valid. Change the JSON-RPC server to require URI "/" for all current accesses. This changes enables the addition of future interfaces at different URIs, such as pull request bitcoin#1982 which demonstrates HTTP REST wallet download. Or, a future, breaking change in JSON-RPC interface could be introduced by serving JSON-RPC calls from new URI "/v2/".
The base bits of pull req bitcoin#1982.
Previously, JSON-RPC clients accessed URI "/", and the JSON-RPC server did not care about the URI at all, and would accept any URI as valid. Change the JSON-RPC server to require URI "/" for all current accesses. This changes enables the addition of future interfaces at different URIs, such as pull request bitcoin#1982 which demonstrates HTTP REST wallet download. Or, a future, breaking change in JSON-RPC interface could be introduced by serving JSON-RPC calls from new URI "/v2/".
ab9c8d0 [RPC] Add totalsupply/moneysupply to getsupplyinfo/getinfo (random-zebra) cea10c7 [RPC][Cleanup] Remove zPIVsupply/zerocoinbalance from getinfo (random-zebra) c764f02 [RPC] Add shieldedsupply to getsupplyinfo and getinfo (random-zebra) Pull request description: Add the shielded pool value (at the chain tip) to `getsupplyinfo`/`getinfo` output. Rename `moneysupply` --> `transparentsupply` Remove `zPIVsupply`/`zerocoinbalance` from `getinfo` output. Based on top of: - [x] bitcoin#1983 ACKs for top commit: furszy: ACK ab9c8d0. Tree-SHA512: 62bda77195f8ae4c26efe4da417e850790c522ec3ccde39cc6f13ea4448947d4b1321b31201da8813923aa87640283cd913e40c3f45cce4dd8565ff8aae8924b
See individual commits. This provides a slightly different, not-JSON-RPC API endpoint, which makes this HTTP request usable via "wget" and similar utilities.
The content returned and format thereof is certainly open to discussion.
My main goals were