Commit Graph

780 Commits

Author SHA1 Message Date
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
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
8efebc349f two small bugfixes -- one, add migration path for wallet 0.14.2->0.14.3 (it just whitelists the upgrade, as the format did not change) -- two, when transfer_address is '' from cli, set addr to None 2017-07-04 13:39:38 -04:00
Jude Nelson
532684661b re-encode addresses based on BLOCKSTACK_RPC_MOCK_BLOCKCHAIN_NETWORK environment variable 2017-07-03 09:47:50 -04:00
Aaron Blankstein
be48e1d227 registrar now skips issuing a TRANSFER if the name registration was done on behalf of the current owner. added test case for this. 2017-07-01 17:45:05 -04:00
Aaron Blankstein
e1006b7cc6 added support for specifying min_confs in RPC/CLI calls to get_balance 2017-07-01 12:38:04 -04:00
Aaron Blankstein
f9bf526b24 bump version 2017-06-30 17:37:37 -04:00
Aaron Blankstein
a9eefbb5fa make the errors component of the info response only appear if there IS an error + make the integration test check for the proper error returns 2017-06-30 16:25:32 -04:00
Aaron Blankstein
f1d05dcfde Merge branch 'rc-0.14.2-registrar-err-msgs' into rc-0.14.3 2017-06-29 18:59:42 -04:00
Aaron Blankstein
cbe4caf311 Merge branch 'rc-0.14.3' of github.com:blockstack/blockstack-core into rc-0.14.3 2017-06-29 18:15:33 -04:00
Aaron Blankstein
ec38e80e10 price lookups return verbose errors for malformed names -- now, if you try to lookup the price of a name which is not 'namespaced', core will give you a sane error 2017-06-29 18:15:27 -04:00
Jude Nelson
b2bdb8ad54 Merge branch 'rc-0.14.3' of https://github.com/blockstack/blockstack-core into rc-0.14.3 2017-06-29 15:59:59 -04:00
Jude Nelson
187adee895 update the help on datastore_stat to indicate that for directories, this returns the entire directory 2017-06-29 15:59:40 -04:00
Jude Nelson
40b6873d47 add 'clearcache' test directive; log which methods we run on datastore reads 2017-06-29 15:59:16 -04:00
Aaron Blankstein
7e22913eed a little bit more supportive of an error response for unauthorized methods with auth tokens 2017-06-29 15:19:16 -04:00
Aaron Blankstein
978945866c removing advanced mode -- now all commands may be run, regardless of advanced mode status, new config files will not have advanced mode written to them 2017-06-29 14:40:40 -04:00
Aaron Blankstein
4a39fadb83 fix for issue 469 part 1 + integration test for it. blockstack regtest was killing itself on a bad tx response from bitcoind. The patch also fixes a value_hash dict keyerror at the end of certain testcase passes 2017-06-29 14:17:36 -04:00
Jude Nelson
1bda677ca3 fix error formatting 2017-06-26 18:01:28 -04:00
Jude Nelson
339a0a0ff2 remove erroroneous else branch 2017-06-26 18:01:17 -04:00
Jude Nelson
aa1bfadb28 Merge branch 'rc-0.14.2' 2017-06-26 17:32:09 -04:00
Jude Nelson
8e9ee82f2a Add PUT /v1/wallet/key/:keyID endpoint 2017-06-26 15:17:28 -04:00
Jude Nelson
3f136782ee expose ConcurrencyViolationException 2017-06-25 18:46:19 -04:00
Jude Nelson
8b19683e86 parallelization improvements to the indexing system; don't allow concurrent index_setup() calls 2017-06-25 18:45:56 -04:00
Jude Nelson
d8917a3628 multi-thread the server for long-running requests (like index initialization); handle concurrency-violation exceptions for serialized operations with HTTP 202 2017-06-25 17:38:24 -04:00
Aaron Blankstein
617c027936 merging 2017-06-23 11:32:21 -04:00
Larry Salibra
d5d742659d hardcode device id for legacy auth requests to 0 #463 2017-06-23 16:12:51 +08:00
Jude Nelson
acd22ee0be default app_public_keys is an array 2017-06-22 17:41:31 -04:00
Jude Nelson
bcde516f5e fix partial schema 2017-06-22 17:24:32 -04:00
Jude Nelson
c488e7a531 allow blockchain_id to be null (for anonymous login) 2017-06-22 17:15:44 -04:00
Jude Nelson
a47550905a convert to string 2017-06-22 16:53:39 -04:00
Jude Nelson
3e460c8b08 add schema for legacy authentication request (https://github.com/blockstack/blockstack.js/issues/217) 2017-06-21 22:43:59 -04:00
Jude Nelson
21930e2846 log single-threaded behavior for debugging 2017-06-21 22:43:51 -04:00