Commit Graph

207 Commits

Author SHA1 Message Date
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
Jude Nelson
f3ff91b7e1 remove now-unneeded check_storage logic (i.e. WIP changes to the storage system no longer requires a bootstrapping step) 2017-02-20 20:58:54 -05:00
Jude Nelson
e0cd86f5cd remove now-useless check_storage pragma check; allow -a/--api_password on the CLI 2017-02-20 20:58:31 -05:00
Jude Nelson
22b92dacc9 remove unused code 2017-02-20 20:58:17 -05:00
Jude Nelson
d9efa25325 Registrar cleanup. Remove legacy JSONRPC interface, remove rpc_token, enable callers to specify a desired tx fee, sync with other API changes 2017-02-20 20:57:34 -05:00
Jude Nelson
7a979fb3ec fix segfault from infinite recursive loop 2017-02-20 20:57:05 -05:00
Jude Nelson
9e6950ed50 Refactor nameops logic with new consolidated safety-check logic. Also, clean up the interfaces, since we're now guaranteed that the caller will have access to the private keys. 2017-02-20 20:56:16 -05:00
Jude Nelson
86a4aa6f86 consolidate all nameop-sanity-check logic into one place. Make it easy to use and hard to use improperly by giving it a declarative interface. Make it fast by running sanity-checks in parallel. 2017-02-20 20:55:23 -05:00
Jude Nelson
af0d75e57f remove lots of now-obsolete app account code. This is no longer necessary, since the app-specific key will be derived from the master key and the app domain name (no need for separate state) 2017-02-20 20:54:47 -05:00
Jude Nelson
089d436cae print what we re-exec 2017-02-13 19:00:17 -05:00
Jude Nelson
f845a009b4 generate both compressed and uncompressed keys when considering keys to sign multisig txs with 2017-02-13 15:43:43 -05:00
Jude Nelson
7e5f420c05 typo 2017-02-13 11:54:45 -05:00
Jude Nelson
06e096778c withdraw: it's okay for amount to be None; we'll calculate it later 2017-02-13 11:52:04 -05:00
Jude Nelson
421061e609 log different min_confs values than the defaults 2017-02-12 19:25:46 -05:00
Jude Nelson
7f76374254 remove dead code; auth bugfixes 2017-02-12 19:16:48 -05:00
Jude Nelson
78a828f7c4 fix up calculations of account and datastore private keys when looking up datastores, users, and accounts 2017-02-12 19:16:30 -05:00
Jude Nelson
907c360fdc speed up master address calculation in hdwallet by a few orders of magnitude 2017-02-12 19:16:10 -05:00
Jude Nelson
4cdf0f537a datastore privatekey hdpath is account_key/0' 2017-02-12 19:15:56 -05:00
Jude Nelson
c8d25a4bd4 codify hdpath for datastore private keys 2017-02-12 19:15:44 -05:00
Jude Nelson
a5e9292b5c derive account-specific private keys from user keys 2017-02-12 19:15:26 -05:00
Jude Nelson
c5e6657afa bugfixes: use the right private keys for datastore operations 2017-02-12 19:15:00 -05:00
Jude Nelson
f82ae94012 better argument-checking on withdraw 2017-02-12 15:36:48 -05:00
Jude Nelson
0128953c2a warn about different number of confirmations 2017-02-12 15:36:21 -05:00