Commit Graph

421 Commits

Author SHA1 Message Date
rachel-rose
fd80a1ddbe debugged key gen and wallet write. all drkcli functions now working 2021-07-04 13:46:22 +02:00
narodnik
d54af89ea6 Merge branch 'asset-id' 2021-07-04 12:40:13 +02:00
narodnik
83199007e1 add tutorial example, corresponds to zk-explainer document 2021-07-04 12:38:41 +02:00
rachel-rose
97eaf01e78 fixed error handling for rusqlite 2021-07-04 11:54:31 +02:00
rachel-rose
7bb955e686 test case for rusqlite 2021-07-04 11:48:24 +02:00
ghassmo
f967c3c74a cargo fmt 2021-07-03 12:30:20 +03:00
ghassmo
274f6284bb add config arg to wallet cli & add subcommands to config arg 2021-07-03 12:28:42 +03:00
ghassmo
618eb7fd2c fix io error when loading config file 2021-07-03 10:44:29 +03:00
rachel-rose
bc93d1734e implemented custom error handling for jsonrpc_core 2021-07-03 09:42:36 +02:00
ghassmo
05db96451a add config file to client cli 2021-07-02 23:28:23 +03:00
rachel-rose
e0053026aa added wallet tests. updated adapter functions to init_db() 2021-07-02 21:31:47 +02:00
ghassmo
0492718611 create config struct for client_cli 2021-07-02 22:22:02 +03:00
ghassmo
3b54479c9e move program options to cli dir 2021-07-02 22:21:00 +03:00
ghassmo
eb8d2633c8 avoid blocking by making jsonserver run after gateway client started 2021-07-01 21:50:51 +03:00
ghassmo
5ec3fa888e use join_config_path function for both sqlite and rocksdb databases 2021-06-30 21:28:04 +03:00
ghassmo
a19084ca10 create util module & create join_config_path function 2021-06-30 21:27:28 +03:00
ghassmo
e334d2ca2b clear warning messages 2021-06-30 20:32:47 +03:00
ghassmo
8197b8bf16 remove asset_type from slab struct 2021-06-30 20:27:28 +03:00
rachel-rose
ab8e64b66c simplified walletdb constructor 2021-06-30 12:38:17 +02:00
rachel-rose
23faf56fdd removed own_coins vector. fn apply() now writes directly to sqlite 2021-06-30 12:29:15 +02:00
rachel-rose
0daef9f312 fixed improper dependency graph which caused wallet to be constructed twice 2021-06-30 08:52:18 +02:00
rachel-rose
cf160aafb0 re-implemented drk cli function calls 2021-06-29 09:44:31 +02:00
Nym
5d8434c871 Fix spend-classic for change of merkle tree depth. 2021-06-28 20:16:57 +00:00
Nym
d47301ed0f Merge branch 'asset-id' 2021-06-28 15:23:52 +00:00
rachel-rose
a7b7603197 moved rpc 'start' inside darkfid 'start' to prevent blocking 2021-06-28 15:21:25 +02:00
rachel-rose
87d72327c6 removed unnecessary cashier test 2021-06-28 15:15:17 +02:00
Nym
60eedb7e70 Save asset_id at walletdb. 2021-06-27 15:00:14 +00:00
Nym
26290ac290 Merge branch 'master' into asset-id 2021-06-27 11:31:52 +00:00
Nym
48beeeb94d Blind the asset_id and enforce asset matches among inputs and outputs. 2021-06-27 11:29:16 +00:00
rachel-rose
b3e6c93a4b made dummy cashier 2021-06-27 11:05:11 +02:00
rachel-rose
963a531908 cleaned up some warnings on darkfid 2021-06-27 10:49:08 +02:00
rachel-rose
c4851233ac removed redundant adapter::new() constructor call 2021-06-27 10:05:36 +02:00
rachel-rose
c78ec2edf3 backup of old dfi.rs 2021-06-27 09:42:39 +02:00
rachel-rose
9901797fa2 merged rpc options into ClientProgramOptions and moved dfi.rs to bin/old 2021-06-27 09:41:33 +02:00
rachel-rose
b0a04b7d93 made self.cursor a reference 2021-06-27 08:34:55 +02:00
rachel-rose
e6d76428d1 made match statement more succinct by ignoring none value 2021-06-27 07:58:42 +02:00
Nym
40f15fc991 Fix fake generated comments. 2021-06-26 17:27:14 +00:00
Nym
7377a47362 Set the merkle tree depth to 32. 2021-06-26 17:23:58 +00:00
Nym
9942b28e94 Add asset_id to coin. Unenforced for now but gets passed around and
included in the coin hash.
2021-06-26 17:08:28 +00:00
Nym
1f719bed60 Remove gui and gfx code, modules and dependencies. 2021-06-26 15:32:58 +00:00
rachel-rose
4d446b1971 removed redundant match 2021-06-24 15:57:49 +02:00
rachel-rose
83a7148e08 implemented Encodable for IncrementalWitness and finished put_own_coins 2021-06-24 15:43:54 +02:00
rachel-rose
028bbe1dce pass wallet adapter instead of walletdb 2021-06-22 16:03:19 +02:00
rachel-rose
70c671e622 fixed sqlite library error. added rpc to darkfid 2021-06-22 13:39:43 +02:00
rachel-rose
4cee7d36a8 fixed 'not a database' error 2021-06-22 13:23:37 +02:00
rachel-rose
0613393e95 implemented note decryption. ran cargo fmt 2021-06-22 10:45:19 +02:00
rachel-rose
a1e6a51d94 implemented try_decrypt_note 2021-06-21 09:58:31 +02:00
rachel-rose
12fcad460c removed redundant test file 2021-06-21 09:45:17 +02:00
rachel-rose
62ca0557cf removed unnecessary arc wrapper from adapter and walletdb 2021-06-20 11:42:37 +02:00
rachel-rose
4c7ce86360 made walletdb constructor, modified darkfid.rs with reference to walletdb. updated walletdb with
wallet variables. partially implemented cashier check.
2021-06-20 10:48:56 +02:00