Commit Graph

189 Commits

Author SHA1 Message Date
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
Jude Nelson
fb72988e25 print out total amount on dust failure 2017-02-12 15:24:04 -05:00
Jude Nelson
9d81711fca error if we can't find UTXOs 2017-02-12 15:21:17 -05:00
Jude Nelson
1498a0cd42 log when we use a different number of confirmations 2017-02-12 15:04:43 -05:00
Jude Nelson
8cbadb50af blockstack_constants, not blockstack_config. Also, quote paths passed to os.system() 2017-02-12 15:04:26 -05:00
Jude Nelson
2a9cba57ad default to MIN_TX_CONFIRMATIONS, not None 2017-02-12 15:04:08 -05:00
Jude Nelson
237dda4793 fix -y option 2017-02-12 15:03:52 -05:00
Jude Nelson
1a7c755ec6 quote paths passed to os.system(). also debug output for min_confs 2017-02-12 15:02:41 -05:00
Jude Nelson
4e03e9d02f if multisig signing fails, at least tell us why 2017-02-12 14:04:58 -05:00
Jude Nelson
d18fd4beba force address to string 2017-02-12 14:04:47 -05:00
Jude Nelson
62119866b2 fix typo in error path 2017-02-12 14:04:36 -05:00
Larry Salibra
37b1510301 fix typo causing 500 error #295 2017-02-12 16:29:49 +02:00
Larry Salibra
7bf5c5bd30 add Access-Control-Allow-Headers header #294 2017-02-12 16:27:51 +02:00
Jude Nelson
ff5491688e add withdraw command to withdraw funds from wallet 2017-02-12 05:51:04 -05:00
Jude Nelson
2c7aa876a5 add GET and POST to /v1/wallet/balance, to query balance and transfer balance 2017-02-12 05:50:45 -05:00
Jude Nelson
64ee47b45b convert unicode to string 2017-02-12 05:50:25 -05:00
Jude Nelson
6528eb7e96 min_confs is type 'integer'; also, plumb through OPTIONS requests 2017-02-12 03:59:10 -05:00
Jude Nelson
59eadc71da use min_payment_confs 2017-02-12 03:59:00 -05:00
Jude Nelson
e2c8b18895 accept min_confs to check the minimum number of confirmations on payment UTXOs 2017-02-12 03:58:41 -05:00