Commit Graph

4492 Commits

Author SHA1 Message Date
Jude Nelson
8ef6dea71b check for storage setup for advanced storage methods; add upgrade_storage command; fix bugs found in testing 2017-01-30 01:35:46 -05:00
Jude Nelson
b949631bd0 store mutable data, but only if the caller owns a public blockchain ID (stops anonymous users from spamming) 2017-01-30 01:35:00 -05:00
Jude Nelson
99810d512a use the announcement API in the blockstack client 2017-01-30 01:34:43 -05:00
Jude Nelson
f91a8d6932 add config options for activating and using the storage gateway; remove announcement API since it's duplicated in the client library. 2017-01-30 01:34:20 -05:00
Jude Nelson
022215d30a bugfixes to fast-sync protocol found in testing 2017-01-30 01:33:56 -05:00
Jude Nelson
e9d7b20dcf WIP: optionally run a blockstack node not as an indexer, but as a storage gateway for mutable data 2017-01-30 01:33:25 -05:00
Jude Nelson
997ee6373e symbol update 2017-01-23 19:10:23 -05:00
Jude Nelson
ba6e1ac2e5 do not tolerate legacy zone files by default (but leave the option of doing so) 2017-01-23 19:10:00 -05:00
Jude Nelson
c4a13bdbbf require the user to migrate the wallet to its latest supported format before allowing it to be unlocked. move wallet-specific one-time setup to the wallet module 2017-01-23 19:09:24 -05:00
Jude Nelson
ff2c4a6d97 config_path, not config_dir, in load_wallet 2017-01-23 19:08:51 -05:00
Jude Nelson
51509d5c00 better public-key searching in the zone file; only return lists of immutable data hashes 2017-01-23 19:08:34 -05:00
Jude Nelson
1dfbc7142e add ECDSA routines to work on files 2017-01-23 19:08:18 -05:00
Jude Nelson
6e8ecfc263 allow reading with the owner key, but not writing 2017-01-23 19:08:05 -05:00
Jude Nelson
ba8c304388 no longer accept the owner private key's signature on new data 2017-01-23 19:07:48 -05:00
Jude Nelson
e44235cd62 get_mutable: try each data store until we get fresh data; data_setup: refactor and clean up; stop trying to auto-migrate name profiles (since we don't need the profile any longer) 2017-01-23 19:07:00 -05:00
Jude Nelson
7fd0a0c16a backup config file call 2017-01-23 19:05:50 -05:00
Jude Nelson
b999323b0e WIP: one-time system setup to set up your data stores and check that you have a data key set in your zone file 2017-01-23 19:05:27 -05:00
Jude Nelson
49f49cc6a8 detect -p/--password and -y/--yes options 2017-01-23 19:05:09 -05:00
Jude Nelson
33eee60c22 registration now requires a data key 2017-01-23 19:04:56 -05:00
Jude Nelson
37579ccdb6 migrate over to the timestamp-based profile replication protocol 2017-01-23 19:04:36 -05:00
Jude Nelson
07324a20a9 get default password from environment; get default-yes setting from environment; WIP on prompting the user to migrate their wallet and create a data key 2017-01-23 19:04:06 -05:00
Jude Nelson
2100cdef5b symbol update 2017-01-23 19:03:39 -05:00
Jude Nelson
fa2214e1db hard-coded fast_sync public key 2017-01-23 19:03:23 -05:00
Jude Nelson
afa09cdf56 fast_sync and fast_sync_snapshot commands 2017-01-23 19:03:09 -05:00
Jude Nelson
fbb17c8c2e Initial fast-sync logic 2017-01-23 19:02:55 -05:00
Jude Nelson
ed6f45ade1 use required, not profile_storage_drivers 2017-01-20 17:52:55 -05:00
Jude Nelson
0d3a61b842 don't forget the queue_path 2017-01-20 17:52:46 -05:00
Jude Nelson
e42843be32 sanity check types on the profile and zonefile queues 2017-01-20 16:06:16 -05:00
Jude Nelson
61cdae7072 add storage_drivers_local config option (empty in the test environment) 2017-01-18 18:51:04 -05:00
Jude Nelson
e335859909 test get_data CLI command when loading data from a blockstack:// URL 2017-01-18 18:50:49 -05:00
Jude Nelson
b904987c75 do data_setup() when we instantiate a wallet; add cli_get_data() hook 2017-01-18 18:50:20 -05:00
Jude Nelson
65b2c83a89 use private key index from shared storage; make some functionality public so we can load user data from the data.py module. 2017-01-18 18:49:41 -05:00
Jude Nelson
0d6f575c19 consolidate ensure_wallet_exists() checks; run data_setup() when we initialize the wallet for the first time; fetch user data from shared storage by default; have data-writing methods return a blockstack:// URL that can be used to read them; add get_data command that resolves a blockstack:// URL to data (regardless of how it is stored). 2017-01-18 18:49:16 -05:00
Jude Nelson
9ec4dfa6bc get user public key from shared storage 2017-01-18 18:47:58 -05:00
Jude Nelson
269aad21a9 bugfixes to blockstack:// URLs. URLs to datastore-hosted data take the form blockstack://$datastore_id@$user_id/$path (where $user_id is the name for a public key, shared on the blockchain or not) 2017-01-18 18:47:18 -05:00
Jude Nelson
ee74529eaf expect to get account private key indexes from storage providers 2017-01-18 18:46:57 -05:00
Jude Nelson
2707c563ec remove unused methods; add storage_drivers_local to identify private storage providers (so we don't accidentally read shared data from it) 2017-01-18 18:46:05 -05:00
Jude Nelson
20dfe8b9a7 keep the private key indexes, public user keys, and user lists on shared storage (not just local storage).
* add support for getting, setting, and deleting user state from storage providers
* add support for generating and saving per-identity and per-user private key indexes
* make sure get_mutable() operates on *non-local* data storage providers for shared data.
2017-01-18 18:44:10 -05:00
Jude Nelson
42659806bb helpful prints 2017-01-17 19:05:53 -05:00
Jude Nelson
acb686278c add tests for datastore URLs 2017-01-17 19:05:45 -05:00
Jude Nelson
48c99ab166 depend on unified blockstack package 2017-01-17 19:05:25 -05:00
Jude Nelson
8a95892b72 don't needlessly encrypt and decrypt secrets in the backend process 2017-01-17 19:05:01 -05:00
Jude Nelson
575a476ba4 fix bugs in resolve.py found during testing 2017-01-17 19:04:49 -05:00
Jude Nelson
667512f37d stricter requirements for datastore names and user IDs; also, add a 'type' field to the datastore (to differentiate between collections and datastores) 2017-01-17 19:04:10 -05:00
Jude Nelson
0b152e80e4 remove the old profile-pointers to mutable data 2017-01-17 19:03:40 -05:00
Jude Nelson
2067ffed17 refactor datastore API so most of it can be reused to implement collections (WIP) 2017-01-17 19:02:31 -05:00
Jude Nelson
abe06490f4 rename package to blockstack 2017-01-17 11:37:29 -05:00
Jude Nelson
30f3c79e20 identify the various code branches 2017-01-17 11:37:20 -05:00
Jude Nelson
02a77ade76 merge rc-0.14.1 unit tests 2017-01-17 11:26:56 -05:00
Jude Nelson
90812a86bc merge rc-0.14.1 brew installer 2017-01-17 11:26:39 -05:00