Commit Graph

1332 Commits

Author SHA1 Message Date
Duke Leto
032c7cbb9f Add transaction time to z_listreceivedbyaddress which drastically speeds up SD operations 2020-09-09 12:58:53 -04:00
Duke Leto
0614f51f28 Fix more docs bugs 2020-09-09 11:51:59 -04:00
Duke Leto
fc9725ca44 Fix docs 2020-09-09 11:45:23 -04:00
Jonathan "Duke" Leto
eae956cde9 Update docs 2020-07-30 09:01:29 -07:00
Duke Leto
31983a9655 Correctly choose between dynamic or random sietch zdust addresses 2020-07-25 01:41:48 -04:00
Duke Leto
7e0c41977f Revert "Use dynamically generated zaddrs in sietch, which are not stored in wallet.dat"
This reverts commit 89532c4d7b.
2020-07-23 22:53:12 -04:00
Duke Leto
cf83dc135a Merge branch 'danger' into sietch_dynamic 2020-07-22 09:39:48 -04:00
Duke Leto
d4883bce7c More timedate changes from KMD 0.6 2020-07-09 10:31:12 -04:00
Duke Leto
83be5195e9 Revert "Randomize sietch memos and increase min zouts to 3"
This reverts commit a053d212b8.
2020-06-17 20:44:54 -04:00
Duke Leto
a053d212b8 Randomize sietch memos and increase min zouts to 3 2020-06-13 21:34:20 -04:00
Duke Leto
2fbcca4167 add rescan rpc 2020-06-13 10:14:51 -04:00
Duke Leto
5a601d1431 desprout 2020-06-08 11:13:17 -04:00
Duke Leto
f13171efc6 desprout 2020-06-06 05:14:21 -04:00
Duke Leto
22d4d1a06e desprout 2020-06-06 04:34:30 -04:00
Duke Leto
3cb215e39a more desprout, ugh 2020-06-05 12:17:41 -04:00
Duke Leto
86a98587a1 desprout 2020-06-05 10:14:52 -04:00
Duke Leto
ed2c9450f9 desprout 2020-06-05 01:20:37 -04:00
Duke Leto
b32bf1f82c Revert "desprout"
This reverts commit 7c6c7150c6.
2020-06-04 21:51:21 -04:00
Duke Leto
7c6c7150c6 desprout 2020-06-03 22:20:10 -04:00
Duke Leto
dd5d932f87 Only print these when -zdebug is turned on 2020-05-11 06:34:48 -04:00
DenioD
b3c7e048ab add z_getnotescount as rpc call ported for Hush from https://github.com/zcash/zcash/pull/4465 2020-04-25 00:30:06 +02:00
Duke Leto
c271fb8cbd Locks and docs 2020-03-10 09:10:12 -04:00
Duke Leto
41662dc370 Remove sprout-related RPC docs 2020-03-10 07:22:14 -04:00
Duke Leto
744ef34438 Add zindex to z_getinfo 2020-03-09 21:04:53 -04:00
Duke Leto
67f666d5ff Tweak z_getinfo data slightly 2020-03-09 18:42:13 -04:00
Duke Leto
2aa376d286 Add z_getinfo, a place for various shielded details that do not fit other places 2020-03-09 16:31:54 -04:00
Duke Leto
fad66953fb Cleanup 2020-03-06 15:22:50 -05:00
Duke Leto
dc7525f12e Untested sapling consolidation plus sietch outputs to reduce metadata leakage 2020-03-04 09:17:05 -05:00
Duke Leto
a7250280d0 Remove deprecated Sprout benchmarking RPCs 2020-02-27 11:06:58 -05:00
Duke Leto
2152f4df6d Port getalldata from ZER sans sproutness 2020-02-26 09:51:09 -05:00
Duke Leto
b06bd5720a Add z_listreceivedbyaddress from ZER and refactor some stuff 2020-02-26 00:20:02 -05:00
Duke Leto
a338a974c7 Add z_listreceivedbyaddress from ZER 2020-02-25 23:49:49 -05:00
Duke Leto
89bbd48eae More libsnark removal changes to various internals 2020-01-24 12:30:58 -05:00
Duke Leto
dc6d7dc0b2 Merge branch 'duke' into sietch_dynamic 2020-01-21 23:35:59 -05:00
Duke Leto
8eef38f94c Fix broken sendmany RPC
The sendmany RPC was broken in the 3.3.0 release due to a bad merge of upstream KMD code,
resulting in this kind of error:

./src/hush-cli sendmany "" "{\"$TADDR1\": 0.0001, \"$TADDR2\": 0.0002, \"$TADDR3\": 0.0004}"
error code: -3
error message:
Amount is not a number or string

No matter how many recipients you give, it will always "fall off the end" of the array, because it increments i twice per loop.
That means AmountFromValue(sendTo[i]) is given an invalid amount and the RPC errors out, with no loss of funds.

This is not a consensus bug and only nodes who want to use the sendmany RPC need to upgrade.
Since GUI wallets do not use this RPC, it's most likely pools and exchanges that would want this.
2020-01-18 08:42:12 -05:00
Duke Leto
d58e2473fc Add sapling account counter to getwalletinfo 2020-01-10 07:29:58 -05:00
Duke Leto
89532c4d7b Use dynamically generated zaddrs in sietch, which are not stored in wallet.dat 2020-01-07 12:28:57 -05:00
Duke Leto
c58fef0d01 Dynamic generation of zaddrs not stored in wallet
These zaddrs can be created via:

    z_getnewaddress donotremember

and return a zaddr like normal usage, but without storing it's extended
spending key in wallet.dat. This will be utilized by Sietch to generate
dynamic zdust for every shielded transaction, preventing attacks related
to having chain-wide fixed pools of zdust.
2020-01-07 09:26:49 -05:00
Duke Leto
8da7b2f9d5 Use global nullifier list in z_listnullifiers 2020-01-02 13:55:22 -05:00
Duke Leto
c0ca9ee8fe Log the sizes of various datastructures about nullifiers when NullifierCount() is called, if -zdebug 2020-01-02 12:46:35 -05:00
Duke Leto
cc3e1c11d7 Use global mempool nullifier count, not local wallet nullifier count 2020-01-02 10:56:14 -05:00
Duke Leto
33e3566cb4 Merge branch 'z_listnullifiers' into zindex_anonset 2020-01-02 08:39:56 -05:00
Duke Leto
5ccfc33931 Remove sprout junk from z_listaddresses 2020-01-02 08:06:31 -05:00
Duke Leto
2d1b8eff67 wip rpc for nullifiers 2020-01-02 08:05:24 -05:00
Duke Leto
0c70df2854 Make the order of zaddr recipients we give to z_sendmany internals non-deterministic 2019-12-31 18:54:25 -05:00
Duke Leto
252451e382 Add -zdebug to more stuff 2019-12-31 08:47:35 -05:00
Duke Leto
bec886ec43 Convert sietch to use 2 fixed zpools of 100 zaddrs 2019-12-30 23:22:56 -05:00
Duke Leto
cb5fbb6139 Define a sietch header file and add --sietch-min-zouts CLI option 2019-12-30 18:22:06 -05:00
Duke Leto
d8ce153b7f Debug 2019-12-30 12:15:28 -05:00
Duke Leto
7609fe8bbb Logging and copyrights 2019-12-29 12:16:44 -05:00