Commit Graph

301 Commits

Author SHA1 Message Date
Jude Nelson
4a71bd6041 explicitly opt-in for idata 2017-03-17 14:37:31 -04:00
Jude Nelson
17bbb3b978 include version in dirent and inode structure, as well a protocol version 2017-03-17 11:47:55 -04:00
Jude Nelson
8197b865e0 allow API caller to override version checks; imporve start-up sequence to ping booting node on the right host/port 2017-03-17 11:47:29 -04:00
Jude Nelson
b736d55209 update parent directory version when modifying children; keep version in inode structure as well as mutable data blob; allow caller to override version checks 2017-03-17 11:46:56 -04:00
Jude Nelson
7132ddd775 storage protocol version 2017-03-17 11:46:41 -04:00
Jude Nelson
2aa76c4028 take force=True/False to force stale inodes 2017-03-17 11:45:56 -04:00
Jude Nelson
b8ff276d72 add -b/--bind 2017-03-16 18:03:25 -04:00
Jude Nelson
55afd3a0a8 it's setup_wallet now 2017-03-16 18:01:29 -04:00
Jude Nelson
93e5c078b6 move out DELETE_DATASTORE_REQUEST_SCHEMA; fix api_bind variable 2017-03-16 18:01:14 -04:00
Jude Nelson
e9336b9ccf allow multiple putfile on the same path 2017-03-16 18:00:57 -04:00
Jude Nelson
81cfb3700f add api_endpoint_bind to change the bind address 2017-03-16 16:18:58 -04:00
Jude Nelson
a4c83697ca add api_endpoint_host config file argument, so we can do API calls to non-localhost API daemons (i.e. containerized ones) 2017-03-16 16:12:49 -04:00
Jude Nelson
2d5ff35f2c expect base64 idata for files 2017-03-16 11:29:24 -04:00
Jude Nelson
af0d5156e1 store base64-encoded file data 2017-03-16 11:29:15 -04:00
Jude Nelson
96ec5962af add rmtree command 2017-03-16 10:58:26 -04:00
Jude Nelson
d2072cb912 erase 'path' and 'dir'; don't bail on assert 2017-03-16 10:56:20 -04:00
Jude Nelson
4962911757 remove dead code; add backend_signin() method for client-side token generation; fix bugs found in testing 2017-03-15 18:12:22 -04:00
Jude Nelson
e6de9d9ab1 fix up client-side datastore API to not require an indexer proxy object 2017-03-15 18:12:02 -04:00
Jude Nelson
efafafc502 add '-A/--api_session' to take a session token on the CLI 2017-03-15 18:11:45 -04:00
Jude Nelson
1a05a8b57b rework signin so as to authorize an externally-given public key 2017-03-15 18:11:24 -04:00
Jude Nelson
14c1acafda CLI interface fixes found from testing 2017-03-15 18:11:12 -04:00
Jude Nelson
5267e61f44 version bump 2017-03-13 18:20:18 -04:00
Jude Nelson
cab322ff7e use config_path for connecting to API, not config_dir 2017-03-13 17:53:17 -04:00
Jude Nelson
4640503b9d fix up documentation a bit 2017-03-13 17:53:08 -04:00
Jude Nelson
6b63fc87f7 unused import 2017-03-13 17:52:53 -04:00
Jude Nelson
52ecbc5fe0 expand client API interface to include datastore operations to help load, store, and delete inodes 2017-03-13 17:52:36 -04:00
Jude Nelson
0f007f6dfe WIP: remove all requirements for holding onto the data private key in core 2017-03-13 17:52:18 -04:00
Jude Nelson
5dd8f7d2b4 refactored datastore API to require clients to sign everything with an external key. datastore I/O requires signed inodes, their payloads, and tombstones (for deletion) 2017-03-13 17:51:41 -04:00
Jude Nelson
3c4d97dd00 include app public key in auth request 2017-03-13 17:51:26 -04:00
Jude Nelson
f066ef7ff0 make datastore commands amenable to external keys 2017-03-13 17:51:07 -04:00
Jude Nelson
6c98387551 serialize/deserialize as netstring; add helper methods for doing so; take externally-generate signatures on mutable data operations; formalize tombstone format 2017-03-09 20:05:27 -05:00
Jude Nelson
ff424d5524 remove unused schema 2017-03-09 20:05:14 -05:00
Jude Nelson
e976083320 WIP: (de)serialize API endpoints in case the client doesn't know how 2017-03-09 20:05:00 -05:00
Jude Nelson
1376a40aa0 make compatible with fastecdsa 1.4.1 2017-03-09 20:04:24 -05:00
Jude Nelson
3dd4d89bbf refactor data API such that we (1) generate inodes and tombstones, (2) sign them all, and (3) replicate them. These steps must be separate. 2017-03-09 20:03:55 -05:00
Jude Nelson
0004ff6573 bitcoind_spv_path 2017-03-09 20:03:40 -05:00
Jude Nelson
801c845483 take data_privkey as a kwarg 2017-03-09 20:03:29 -05:00
Jude Nelson
e15c759303 don't take wallet; take data private key for datastore operations 2017-03-09 20:03:06 -05:00
Jude Nelson
16a232d818 clarify port number usage 2017-03-06 18:16:50 -05:00
Jude Nelson
2a3a1f5fa4 override host/port from global CLI arguments 2017-03-06 18:16:37 -05:00
Jude Nelson
1c47043648 consolidate global CLI option parsing 2017-03-06 18:16:22 -05:00
Jude Nelson
6c840c0a17 remove dead code 2017-03-06 14:23:32 -05:00
Jude Nelson
149dc5557a use right variable name 2017-03-02 12:17:57 -05:00
Jude Nelson
165b5d13d4 fix task reported; fix error output 2017-03-02 12:17:41 -05:00
Jude Nelson
2fcd64eb08 catch assertionerror when estimating preorder/register fees, so we can do a rough estimate 2017-03-02 12:17:24 -05:00
Jude Nelson
add43afe3d make sure the wallet exists before starting the API endpoint 2017-03-02 12:17:11 -05:00
Jude Nelson
dbd870bcc3 fix altering node config fields 2017-03-02 11:50:05 -05:00
Jude Nelson
ee4f897ea3 use exclusively the required storage drivers for data stores 2017-03-01 23:08:35 -05:00
Jude Nelson
7e8ba1ae8b allow put/delete mutable data to specify that they want to use the required set of drivers exclusively 2017-03-01 23:07:56 -05:00
Jude Nelson
1586cef169 don't json.loads data 2017-03-01 19:30:58 -05:00