ghassmo
|
afae1cc619
|
make cashierdb generic and use asset_id with each keys saved
|
2021-09-09 15:20:31 +03:00 |
|
ghassmo
|
606cf7a3a8
|
impl Decodable and Encodable for btc address
|
2021-09-09 14:22:23 +03:00 |
|
lunar-mining
|
b37eebeb91
|
ran cargo fmt
|
2021-09-09 09:10:00 +02:00 |
|
ghassmo
|
5fe2970827
|
refactoring and cleaning up functions inside cashierdb
|
2021-09-08 17:01:17 +03:00 |
|
ghassmo
|
7d1d97c5ba
|
Add a function to cashierdb to get all withdraws private keys and a
function to delete withdraws keys records by btc address
|
2021-09-08 15:16:06 +03:00 |
|
ghassmo
|
4f0ab6e569
|
remove keys related functions in cashierdb and remove keys table from cashierdb's schema. cashier no longer handle private and public keys
|
2021-09-08 01:30:00 +03:00 |
|
ghassmo
|
4b494624d0
|
move duplicate functions in walletdb and cashierdb to walletapi
|
2021-09-08 01:14:38 +03:00 |
|
ghassmo
|
bb290b1fb6
|
make OwnCoin struct instead of tuple
|
2021-09-07 22:36:25 +03:00 |
|
ghassmo
|
4e607b2696
|
add keypair to cashier wallet when call key_gen() function
|
2021-09-07 22:33:51 +03:00 |
|
ghassmo
|
98042a3e90
|
fix a bug in cashierdb test
|
2021-09-07 20:16:07 +03:00 |
|
ghassmo
|
33ae156f3c
|
create WalletApi trait and implement it for both cashierdb and walletdb
|
2021-09-07 15:28:21 +03:00 |
|
ghassmo
|
c1b145517f
|
cargo fmt
|
2021-09-07 12:45:37 +03:00 |
|
ghassmo
|
c4aa2bab33
|
add test cases to cashierdb
|
2021-09-07 12:44:48 +03:00 |
|
ghassmo
|
e9bbba839c
|
unify the order of keypair inside cashierdb
|
2021-09-07 12:41:57 +03:00 |
|
ghassmo
|
8463e9c3a7
|
fix typo in walletdb destroy function
|
2021-09-07 12:39:03 +03:00 |
|
ghassmo
|
ca438923b0
|
change the way of constructing both walletdb and cashierdb
|
2021-09-07 11:50:12 +03:00 |
|
ghassmo
|
7a0c98682a
|
key_gen() generating new keypair and add them to walletdb
|
2021-09-05 13:23:00 +03:00 |
|
ghassmo
|
78832bed3f
|
check from walletdb if the cashier public key is valid
|
2021-09-05 12:40:35 +03:00 |
|
ghassmo
|
cda82fce68
|
get witnesses and update them through walletdb
|
2021-09-05 10:15:56 +03:00 |
|
ghassmo
|
da8aab6c29
|
remove unused fields in WalletDb
|
2021-09-04 15:45:55 +03:00 |
|
ghassmo
|
84773639e5
|
cargo fmt
|
2021-09-03 23:00:25 +03:00 |
|
ghassmo
|
23c1d0c667
|
fix typo in expect messages
|
2021-09-03 04:38:52 +03:00 |
|
ghassmo
|
864760df4a
|
Cashier: avoid generating new keypair if keys exist in cashierdb
|
2021-09-03 04:24:32 +03:00 |
|
ghassmo
|
6fa951b5f3
|
use debug macro instead of info for debugging & add proper name for target field in each debug macro
|
2021-09-03 03:56:27 +03:00 |
|
ghassmo
|
59436a1197
|
fix bugs in the process of withdrawing
|
2021-09-03 03:13:00 +03:00 |
|
Janus
|
c21699b312
|
Use shorthand for errors and fmt
|
2021-08-31 22:14:36 -04:00 |
|
ghassmo
|
7283cc4ada
|
minor changes in walletdb.rs
|
2021-08-31 14:40:47 +03:00 |
|
ghassmo
|
cd07494953
|
remove cash_gen_key function from walletdb.rs
|
2021-08-31 14:32:12 +03:00 |
|
ghassmo
|
fff6827343
|
darkfid return ClientResult with a proper message instead of panic and crash
|
2021-08-30 01:06:44 +03:00 |
|
ghassmo
|
57352de3c2
|
cargo fmt
|
2021-08-23 04:52:29 +03:00 |
|
ghassmo
|
3639c6d20f
|
create a new public and private keypair for withdraw process
|
2021-08-23 04:49:21 +03:00 |
|
ghassmo
|
e400bb1deb
|
move OwnCoins type to crypto module
|
2021-08-23 04:38:46 +03:00 |
|
ghassmo
|
c4c8234f65
|
clean up withdraw implementation
|
2021-08-21 00:52:39 +03:00 |
|
ghassmo
|
aa480672d3
|
add withdraw_keypairs into cashierdb
|
2021-08-18 15:35:21 +03:00 |
|
lunar-mining
|
730714e312
|
ran cargo fmt and updated todo.md
|
2021-08-15 12:38:59 +02:00 |
|
ghassmo
|
e0cb31d983
|
fix the warnings
|
2021-08-13 05:08:34 +03:00 |
|
ghassmo
|
5c8f65d881
|
cashier: fix bugs in cashierdb
|
2021-08-13 04:42:06 +03:00 |
|
lunar-mining
|
8a6f14571a
|
added mutex lock to zmq socket. finished client side deposit().
ran cargo fmt
|
2021-08-08 12:19:18 +02:00 |
|
ghassmo
|
94c63b15be
|
add walletdb path to darkfid config file
|
2021-08-08 07:09:38 +03:00 |
|
ghassmo
|
30b4f3150b
|
make the tests pass in walletdb
|
2021-08-07 05:24:46 +03:00 |
|
Janus
|
916a679a81
|
Check for existing dkey_pub to matched btc
|
2021-08-06 17:42:26 -04:00 |
|
ghassmo
|
2d859c9cb1
|
fix bugs and add test cases inside walletdb.rs
|
2021-08-06 05:22:53 +03:00 |
|
ghassmo
|
40d71df4dd
|
fix an error happen when query public key from walletdb
|
2021-08-05 05:01:02 +03:00 |
|
ghassmo
|
7f677f2c61
|
parse and get own_coins from walletdb
|
2021-08-04 20:05:33 +03:00 |
|
Janus
|
a3f5f09b9d
|
Remove some warnings
|
2021-08-03 00:58:44 -04:00 |
|
Janus
|
c47057e25f
|
Add cashier function mint_dbtc
|
2021-08-03 00:52:42 -04:00 |
|
Janus
|
9f35f9c14e
|
Replace bitcoin-rs references
|
2021-07-29 22:51:36 -04:00 |
|
Janus
|
0465e70b3a
|
Add separate sqlcipher db for Cashier
|
2021-07-29 02:34:26 -04:00 |
|
lunar-mining
|
a6b4791feb
|
added deserialize to walletdb.rs 'get' functions. ran cargo fmt
|
2021-07-24 10:34:56 +02:00 |
|
Janus
|
14e8a5a940
|
Start zkpubkey -> btc addr exchange
|
2021-07-21 11:09:30 -04:00 |
|