Commit Graph

831 Commits

Author SHA1 Message Date
Jude Nelson
0eac69306f nonrelative imports 2017-07-06 18:56:41 -04:00
Jude Nelson
2dae62c1f3 nonrelative imports 2017-07-06 18:56:32 -04:00
Jude Nelson
3c00c60ed8 nonrelative imports 2017-07-06 18:56:22 -04:00
Jude Nelson
f6c6eadad9 code to generate and look up app-specific keys 2017-07-06 18:49:14 -04:00
Jude Nelson
9891eda24f bugfixes in get_mutable_data() when supporting multiple data hashes 2017-07-06 18:48:57 -04:00
Jude Nelson
3dcf458563 warn if we see a legacy authToken 2017-07-06 18:48:39 -04:00
Jude Nelson
6e73c1ae2d nonrelative imports 2017-07-06 18:48:31 -04:00
Jude Nelson
0cb5ba1835 profile_list_accounts(), not _list_accounts() 2017-07-06 18:48:18 -04:00
Jude Nelson
99cb296936 get app-specific private key 2017-07-06 18:48:01 -04:00
Jude Nelson
3503e63d00 fix some bugs in get_mutable() 2017-07-06 18:47:47 -04:00
Jude Nelson
8057b0e352 look up device public keys and devices for datastore operations; add "app_signup" command to add one's device to the application 2017-07-06 18:46:45 -04:00
Jude Nelson
30b91122d8 Merge branch 'rc-0.14.3' of https://github.com/blockstack/blockstack-core into rc-0.14.3 2017-07-05 17:40:03 -04:00
Jude Nelson
f3ecfe4d27 fix up symbols 2017-07-05 17:32:12 -04:00
Jude Nelson
85b463b8f4 move lookup_name_zonefile_pubkey() to zonefile.py 2017-07-05 17:31:48 -04:00
Jude Nelson
f4475762a5 fix bugs in testing and rename a few key-lookup methods 2017-07-05 17:31:32 -04:00
Jude Nelson
669bf1396b when verifying mutable data, simply take a list of public keys and addresses to try 2017-07-05 17:31:09 -04:00
Jude Nelson
9adf4c84c3 fix bugs in account manipulation discovered while testing 2017-07-05 17:30:52 -04:00
Jude Nelson
5782827ece get_mutable() can take a list of public keys, a list of public key hashes, and a device -> public key mapping 2017-07-05 17:30:30 -04:00
Jude Nelson
16fa6811b6 receive and store token files, not profiles 2017-07-05 17:30:14 -04:00
Jude Nelson
2ba176e0c4 name data is a token file, not a profile 2017-07-05 17:30:04 -04:00
Jude Nelson
167292adb2 we register with token files now, not profiles 2017-07-05 17:29:54 -04:00
Jude Nelson
6c33a7a309 sync API with get_mutable() 2017-07-05 17:29:44 -04:00
Jude Nelson
463825dbe8 more work on incorporating token files: allow lookup to fetch both profiles and token files; allow us to list device IDs in the token file; extract public keys and device IDs from the token file when loading datastore; flesh out migration logic to convert profiles into token files, and more 2017-07-05 17:27:35 -04:00
Aaron Blankstein
37d1f4e727 Merge branch 'rc-0.14.3' into api-rc-0.14.3 2017-07-05 11:24:08 -04:00
Aaron Blankstein
3d36e74f6c Merge branch 'rc-0.14.3' of github.com:blockstack/blockstack-core into rc-0.14.3 2017-07-05 11:18:23 -04:00
Aaron Blankstein
949ee92091 merge bug 2017-07-05 11:16:36 -04:00
Aaron Blankstein
d48a6b6ee5 adding missing import, found a totally undefined variable with pylint in the process, marked that branch statement as unimplemented. 2017-07-05 11:08:16 -04:00
Aaron Blankstein
86aa5599cb merging changes in safety.py 2017-07-05 10:29:22 -04:00
Aaron Blankstein
c8a12d4edb rename flag 'aggressive_registration' -> 'unsafe' + added information to the api doc 2017-07-05 10:10:36 -04:00
Jude Nelson
9cc2366601 Merge branch 'rc-0.14.3' of https://github.com/blockstack/blockstack-core into rc-0.14.3 2017-07-04 23:39:10 -04:00
Jude Nelson
8471f6414e notes on what we're going to have to change in order to support token file replication 2017-07-04 23:38:58 -04:00
Jude Nelson
3a3a0a005b always return the raw zone file and name record when looking up a zone file 2017-07-04 23:37:04 -04:00
Jude Nelson
b6cab442f8 version bump 2017-07-04 23:36:44 -04:00
Jude Nelson
bf615e7b16 no longer serialize profiles (handled by token file logic); no longer accept structured data for storing data (so no serialization required) 2017-07-04 23:36:16 -04:00
Jude Nelson
999feaacfd no relative imports 2017-07-04 23:35:58 -04:00
Jude Nelson
4e1f0a2bca fix up token file spec as functional tests revealed bugs 2017-07-04 23:35:41 -04:00
Jude Nelson
1c40261308 patch API endpoint to use new, slightly-modified zone file API 2017-07-04 23:35:25 -04:00
Jude Nelson
1fe457c765 remove most profile loading/storing logic, since this will be handled by the token file 2017-07-04 23:35:00 -04:00
Jude Nelson
2aaf949026 no relative imports 2017-07-04 23:34:49 -04:00
Jude Nelson
8256cf1b43 add methods to extract various private keys from the per-device keychain 2017-07-04 23:34:29 -04:00
Jude Nelson
d23325cb76 accelerate datastore writes by storing headers and payloads in parallel, and deleting in parallel. keep a persistent "journal" of deletions-in-progress, so we can mask partial delete failures and give clients recovery hints by indicating whether or not a child inode actually exists (i.e. whether or not it partially deleted, but not completely deleted) 2017-07-04 23:32:21 -04:00
Jude Nelson
e08cc6e85e don't use relative imports 2017-07-04 23:32:00 -04:00
Jude Nelson
6e063776d2 don't use relative imports 2017-07-04 23:31:49 -04:00
Jude Nelson
003df35a4a don't use relative imports in UTXO drivers 2017-07-04 23:31:36 -04:00
Jude Nelson
e22457949b use a different index bucket name in regtest mode 2017-07-04 23:31:18 -04:00
Jude Nelson
f39a0118b8 require data_privkey (will be the signing key in a token file for a name) 2017-07-04 23:30:58 -04:00
Jude Nelson
c4c9e029a9 patch profile-dependent methods and data-key-dependent methods to use the token file for data formatting and key selection 2017-07-04 23:30:18 -04:00
Jude Nelson
e6c3878f36 initial stab at a token file implementation, which links a name's profile, device-specific keys, name, and app/device keys 2017-07-04 23:29:40 -04:00
Aaron Blankstein
b1004dbb39 better registrar error messages (added to the return of info command) 2017-07-04 17:56:29 -04:00
Aaron Blankstein
7ee99f2ee0 dangerous registrations! ignore safety! 2017-07-04 16:29:13 -04:00