Commit Graph

279 Commits

Author SHA1 Message Date
Jude Nelson
d0206780f8 make sure the API server is running before running name operations 2017-02-27 11:40:03 -05:00
Jude Nelson
1ffc7e3075 if an RPC method fails, tell the user to try again with --debug 2017-02-27 09:36:18 -05:00
Jude Nelson
895fc95a4a handle connection errors correctly, and tell the user to try again with --debug 2017-02-27 09:35:59 -05:00
Jude Nelson
03d3505d94 inform the user on error to try again with --debug 2017-02-27 09:35:43 -05:00
Jude Nelson
5dfbd50825 allow 'tx_fee' on POST to /v1/names to renew 2017-02-26 02:42:09 -05:00
Jude Nelson
5120dc10c2 include name in profile cache, so we re-send the same profile for different names (but not the same name) 2017-02-26 02:41:39 -05:00
Jude Nelson
65cdd7beec always return zonefile_hash on set_zonefile_hash 2017-02-26 02:41:22 -05:00
Jude Nelson
05736acc36 fix bugs in daemonization logic 2017-02-25 00:40:39 -05:00
Jude Nelson
df3fbcf75d expose daemonize 2017-02-24 19:20:32 -05:00
Jude Nelson
5e230ae382 better handling of put_immutable_data where there's a zone file hash collision 2017-02-24 19:18:44 -05:00
Jude Nelson
9a8b77ebcb factor out daemonization logic so we can reuse it 2017-02-24 19:18:27 -05:00
Jude Nelson
4329a657b7 fix bugs found in testing; better error messages 2017-02-24 19:18:08 -05:00
Jude Nelson
a436a232a0 fix bugs found in testing 2017-02-24 19:17:53 -05:00
Jude Nelson
f23dc89780 app resources can have '/' in them, so differentiate between url-encoded string pattern with and without '/' (since datastore inode names cannot have '/') 2017-02-23 17:24:47 -05:00
Jude Nelson
24ed5c6954 add resources endpoint; don't require wallet keys on datastore read 2017-02-23 17:24:29 -05:00
Jude Nelson
cd52a8f9e6 fix bugs found in testing; no longer need wallet keys to read data 2017-02-23 17:24:10 -05:00
Jude Nelson
e9fe6e7989 make sure we always always always use the chain code when deriving a hardened child 2017-02-23 17:23:50 -05:00
Jude Nelson
7942d74e33 make sure we return an errno on data-plane operations 2017-02-23 17:23:36 -05:00
Jude Nelson
6c94fbe368 in all non-fatal error paths, return the set of sanity check results, the balance, name cost, and tx fee (even if some of the required checks failed) 2017-02-23 17:22:50 -05:00
Jude Nelson
b8d2270bcd always verify that we get a tx fee, and always run the safety checks even if we can tolerate their failure (since the safety checks get the tx fee) 2017-02-23 17:22:25 -05:00
Jude Nelson
7446d5cbbf update app-loading logic to use the new account key generation protocol 2017-02-23 17:22:03 -05:00
Jude Nelson
860a6baadc fix bugs found in testing 2017-02-23 17:21:50 -05:00
Jude Nelson
d4aab2f219 fix bugs found during testing of hash verification 2017-02-21 12:35:34 -05:00
Jude Nelson
059bbd1e52 define inode header schema separately 2017-02-21 12:35:24 -05:00
Jude Nelson
02f8cf979a WIP: revamp the collections and stores API endpoints 2017-02-21 12:35:11 -05:00
Jude Nelson
b4ba1b48e0 fix error string 2017-02-21 12:35:00 -05:00
Jude Nelson
5c768246b1 fix bugs found during testing 2017-02-21 12:34:51 -05:00
Jude Nelson
197e58273e expand the make_wallet_keys() test method to generate addresses and public keys as well 2017-02-21 12:34:29 -05:00
Jude Nelson
66c2e0d9a0 datastore bugfixes found during testing 2017-02-21 12:34:18 -05:00
Jude Nelson
2ea288be7a datastore bugfixes found during testing 2017-02-21 12:34:06 -05:00
Jude Nelson
cf91518ae0 fix up symbols 2017-02-20 21:17:21 -05:00
Jude Nelson
4bde177f8d Remove now-unneeded users, accounts, and datastores code; switch to using consolidated sanity-checking logic; rely on the API server for most of the heavy-lifting 2017-02-20 21:06:58 -05:00
Jude Nelson
e2de4837be significant code-cleanup. Remove legacy JSONRPC interface; rename methods from _rpc_ to _api_; get name operations to work and to accept more useful arguments; make it so we can asynchronously transfer a name after registering it; WIP revamping the storage API 2017-02-20 21:05:56 -05:00
Jude Nelson
1bcf100cba fix up debug output on get_fees(); log address on absence of UTXOs 2017-02-20 21:05:31 -05:00
Jude Nelson
e0065c9da1 log absence of UTXOs with address 2017-02-20 21:05:12 -05:00
Jude Nelson
cf3b4a0239 log absence of UTXOs with address 2017-02-20 21:05:01 -05:00
Jude Nelson
9ff4f6e04c log absence of UTXOs with address 2017-02-20 21:04:47 -05:00
Jude Nelson
e8200e0732 take both wallet and API passwords on the CLI 2017-02-20 21:04:34 -05:00
Jude Nelson
725f57a780 simply make_wallet() and save_keys_to_memory() interfaces 2017-02-20 21:04:17 -05:00
Jude Nelson
0466e6d7f5 use fastecdsa for signing and verifying transactions (much faster than ecdsa) 2017-02-20 21:03:59 -05:00
Jude Nelson
a9c8c088e2 Remove now-unused JSONRPC schemas, user schemas, and account schemas 2017-02-20 21:03:29 -05:00
Jude Nelson
29ce0a178a Remove user and account resolution logic, since these are no longer distinct objects. Also, clean up datastore URL structure and remove unused URL-construction code 2017-02-20 21:02:52 -05:00
Jude Nelson
e1dfc2c8e2 fix typo in get_namespace_blockchain_record 2017-02-20 21:02:36 -05:00
Jude Nelson
d0ebca092a moved lots of signing/verifying logic to keys.py; allow authenticating mutable data by hash 2017-02-20 21:02:14 -05:00
Jude Nelson
c00bf826aa Move data-signing and data-verifying logic from storage.py to keys.py 2017-02-20 21:01:50 -05:00
Jude Nelson
17588ebf27 We no longer need user objects for datastores to work properly. Remove now-useless code 2017-02-20 21:01:20 -05:00
Jude Nelson
bf8d43b537 refactor and remove a lot of code from the storage logic. Stores are now identified by the hash of a public key derived from the app's domain and the user's master key. There is no longer a need for user objects, user lists, and private key indexes, and no longer a need for storage bootstrapping. 2017-02-20 21:00:31 -05:00
Jude Nelson
9d26f8dc36 No longer differentiate between user and name profiles (there are simply profiles). Remove unnecessary code. 2017-02-20 21:00:00 -05:00
Jude Nelson
5abaf0f291 take api_password= in the config file; remove now-unneeded storage metadata directories 2017-02-20 20:59:39 -05:00
Jude Nelson
9fbe6e3c6a remove now-unused constants for signing key info 2017-02-20 20:59:25 -05:00