Duke Leto
3f2e814067
alert system updates
2020-09-13 19:15:15 -04:00
Duke Leto
5c5e545e75
HUSH has no JoinSplits
2020-09-13 19:12:21 -04:00
Duke Leto
98e9ed80d7
Merge branch 'danger' of github.com:MyHush/hush3 into danger
2020-09-13 13:28:46 -04:00
Duke Leto
b22a73fc29
Run-time randomly generated Sietch zdust addresses
...
This commit drastically improves the privacy of the HUSH anonymity set
under attacks which ingest wallet.dat's which have been obtained by
seizure, i.e. stealing someones HUSH wallet.dat and putting it into
chain analysis software. Ciphertrace is known to do this to ZEC and XMR
and we can assume all chain analysis companies are implementing new
ways to de-anonymize privacy coins with any data they can obtain.
Instead of randomly sending to a randomly chosen static address,
hushd Sietch zdust addresses are now randomly generated at run-time. These
addresses are not stored in wallet.dat in any way and their private keys
are not known except by the internal memory of hushd for a few milliseconds.
This data is not stored in long-lived data structures of hushd, only as long
as the RPC z_getnewaddress is running or the equivalent function for internals
code paths. The seeds or private keys of these addresses are never stored on disk.
This now brings hushd on par with SDL, which already does this via a
different but equivalent seed phrase technique.
With this technique, if a HUSH wallet.dat is seized, it's impossible to tell
if any of the shielded outputs are random Sietch zdust with random data payload
or a one-time-use zaddr with encrypted payload.
2020-09-13 12:35:41 -04:00
Duke Leto
4f70252524
Increase max --sietch-min-zouts to 50
2020-09-13 11:24:47 -04:00
Duke Leto
85a40ae2ed
Tweak copyright
2020-09-13 11:23:55 -04:00
Duke Leto
a45ee31765
Add a static makefile for now
2020-09-11 10:30:56 -04:00
Duke Leto
7ae5a565d5
Add a bunch of things required by bip39 dependencies
2020-09-11 10:30:01 -04:00
Duke Leto
514348c427
Add various bip39 and base32/base58 stuff
2020-09-11 10:29:00 -04:00
Duke Leto
650498ec27
bip39 updates + tweaks
2020-09-11 10:27:14 -04:00
Duke Leto
5d08cd7b57
Refactor Hush supply curve into a dedicated function and increase logspam
2020-09-11 07:23:44 -04:00
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
Duke Leto
ba4f1710a4
Merge branch 'danger' of github.com:MyHush/hush3 into danger
2020-09-09 11:43:00 -04:00
Duke Leto
5412da7d71
Connect z_listreceivedaddress to the outside world
2020-09-09 11:42:52 -04:00
Duke Leto
b432e27f1b
Refactor hush block subsidy
2020-09-08 16:10:32 -04:00
Duke Leto
3744f429f2
Re-enable 3rd block subsidy era
2020-09-08 15:52:09 -04:00
Duke Leto
fbc34ef071
Implement custom Hush block subsidy code since changing our blocktime and using many eras breaks assumptions of existing code
2020-09-08 15:49:10 -04:00
Duke Leto
1751f986f1
Logspam for last and max eras
2020-09-08 15:16:00 -04:00
Duke Leto
5871b3019a
Mo debug regarding current era and block subsidy
2020-09-08 14:57:38 -04:00
Duke Leto
807a37e740
Behold vast logspam, refactoring and dead code removal
2020-09-08 12:47:17 -04:00
Duke Leto
fe4f0f7e9e
Logspam
2020-09-08 12:01:07 -04:00
Duke Leto
67ed136e25
Only give 3 values for now to match how many values come in via CLI
2020-09-08 11:45:19 -04:00
Duke Leto
95ff64404c
Specify that secret_key is a decimal not hex value
2020-09-08 11:10:43 -04:00
Duke Leto
2d90cef651
Merge branch 'danger' of github.com:MyHush/hush3 into danger
2020-09-08 09:54:20 -04:00
Duke Leto
31940f2b3a
Thanks to @DenioD for reminding me we must modify -ac_end internals variable as well
2020-09-08 09:54:13 -04:00
Duke Leto
b572ef0228
Calculate this value at run-time because it's not set yet when this header file is parsed
2020-09-07 18:40:51 -04:00
Duke Leto
9ae40031d6
Add -ac_halving1 + -ac_halving2 CLI args for devs
...
These new CLI args control the interval of the 1st halving (between
1st and 2nd halving blocks) and the 2nd halving (between 2nd and 3rd
halving blocks). -ac_halving2 is used for all subsequent halvings.
This allows devs to simulate things via the CLI without changing code,
to verify things work as expected at halvings in the far future.
2020-09-07 12:58:50 -04:00
Duke Leto
727abe0ef2
Be more precise
2020-09-07 12:36:26 -04:00
Duke Leto
d420e14472
Explicitly set the Hush block reward and halving intervals for the next two halvings (8 years)
2020-09-07 12:35:15 -04:00
Duke Leto
880cbc6b0d
Mo docs for hushd
2020-09-07 08:54:12 -04:00
Duke Leto
58f7ae1336
Document hushd a bit
2020-09-07 08:51:50 -04:00
Duke Leto
043d58709d
Fix off-by-one-decimal-place error discovered by @DenioD
2020-09-07 08:36:48 -04:00
Duke Leto
b9fd0ce900
Fix bugs in porting zec upstream code
2020-09-07 08:34:19 -04:00
Duke Leto
1c4a2ee13c
WIP hush_supply
2020-09-07 08:33:38 -04:00
Duke Leto
6745ea5a48
WIP script to simulate Hush total supply for every block in the future until it goes to zero
2020-08-17 00:17:09 -04:00
Duke Leto
9deb58fa4e
Start to tweak hush_supply and save old script to compare results
2020-08-16 23:18:15 -04:00
Duke Leto
40d6716993
Update Hush emission schedule code based on going to 75s blocks @ Block 340K
2020-08-01 09:12:14 -04:00
Duke Leto
1d24015300
Update checkpoints
2020-07-31 09:24:47 -04:00
Duke Leto
6b531f4ecb
Update checkpoints
2020-07-31 08:51:35 -04:00
Duke Leto
63652a543d
Increase default stride to 5000 blocks
2020-07-31 08:34:08 -04:00
Duke Leto
eab78f6b44
We probably don't need to version control our core files
2020-07-31 08:33:55 -04:00
Duke Leto
9459536b52
copyrights
2020-07-31 08:33:36 -04:00
Duke Leto
19b6feecba
Fix docs of decoderawtransaction
2020-07-31 08:17:19 -04:00
Duke Leto
bfbe4e9553
Tweak some logging
2020-07-28 11:38:16 -04:00
Duke Leto
c14e7102bf
Reduce noise
2020-07-28 11:11:21 -04:00
Duke Leto
10c5809877
More z_sendmany debugging when -zdebug enabled
2020-07-28 11:00:20 -04:00
Duke Leto
b4e7f45826
Remove dead code
2020-07-28 00:44:57 -04:00
Duke Leto
79a4a48c38
Fix zaddr logging
2020-07-26 14:58:49 -04:00
Duke Leto
fd456ec146
Bump version to 3.5.0 and update unix man pages
2020-07-26 08:47:59 -04:00
Duke Leto
a59803c325
Merge branch 'sietch_dynamic' into danger
2020-07-26 08:29:45 -04:00
Duke Leto
6e40e2f1e2
NULL terminator considered important
2020-07-26 08:29:25 -04: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
ee09f123c6
Bump version to a 3.5 pre-release
2020-07-23 10:27:07 -04:00
Duke Leto
5a1109ccf4
Allow z2z fork height to be specified on CLI for testing
2020-07-23 08:04:25 -04:00
Duke Leto
cf83dc135a
Merge branch 'danger' into sietch_dynamic
2020-07-22 09:39:48 -04:00
Duke Leto
4401d484ef
Merge branch 'duke' into danger
2020-07-22 09:34:40 -04:00
Duke Leto
fbb9a20de4
Merge branch 'danger' of github.com:MyHush/hush3 into danger
2020-07-22 09:34:34 -04:00
Duke Leto
47aaeea0c9
Merge branch 'dev' into duke
2020-07-22 09:34:15 -04:00
Duke Leto
9f8f24dc78
Merge pull request #126 from miodragpop/patch-1
...
malloc.h conditional inclusion
2020-07-22 02:04:33 -04:00
Duke Leto
2452d4d3ec
Merge pull request #123 from miodragpop/master-aarch64
...
Updates and tweaks which enable cross-building of 64bit arm binaries
2020-07-20 09:23:29 -04:00
Duke Leto
b094db7113
More debugspam for -zdebug; Fix bug where shielded spends where not tracked correctly
2020-07-17 15:35:28 -04:00
Duke Leto
3110898426
Catch errors early and exit, such as when best chain is still activating
2020-07-17 01:24:50 -04:00
Duke Leto
acead3ea3e
Merge branch 'danger' of github.com:MyHush/hush3 into danger
2020-07-13 14:03:42 -04:00
Duke Leto
cbf0351e98
Show shielded spends in getchaintxstats output
2020-07-13 14:03:37 -04:00
Duke Leto
be314a6123
Merge pull request #118 from crackfoo/patch-6
...
Update funcs.mk
2020-07-12 19:35:33 -04:00
Duke Leto
40f0745fab
Track shielded spends on disk so we can calculate anonset in real-time correctly
2020-07-11 11:11:14 -04:00
Duke Leto
d516a21d54
Create setter to modify blocktime consensus params at run-time
2020-07-11 11:10:15 -04:00
Duke Leto
55890a0543
Set various chain params when changing blocktime
2020-07-11 01:19:08 -04:00
Duke Leto
d4883bce7c
More timedate changes from KMD 0.6
2020-07-09 10:31:12 -04:00
Duke Leto
e959ea9768
Timedata changes from KMD 0.6
2020-07-09 08:35:04 -04:00
Duke Leto
eb935e3c93
Set correct blocktime when disconnecting a block and rewinding before our block time halving
2020-07-09 07:22:33 -04:00
Duke Leto
bb6565d966
Block time halving at height 340000
2020-06-24 20:49:53 -04:00
Duke Leto
e4d2ada728
formatting
2020-06-24 17:58:03 -04:00
Duke Leto
2cf9b80b8c
cleanup
2020-06-24 17:56:50 -04:00
Duke Leto
828fff6168
Update some tests
2020-06-23 12:59:32 -04:00
Duke Leto
f03a7b0e7e
Copyright
2020-06-23 12:48:36 -04:00
Duke Leto
920667dd73
Delete tests from ZEC that do not apply to us
2020-06-23 12:48:29 -04:00
Duke Leto
8c0faf62ef
Update build instructions
2020-06-18 10:06:35 -04:00
Duke Leto
13e4ffafaf
Merge pull request #117 from MyHush/dev
...
Hush 3.4.0
2020-06-18 04:53:13 -07:00
Duke Leto
a7cd2b3750
Chill out on the logspam
2020-06-18 06:41:26 -04:00
Duke Leto
9bcf13bf4a
report invalid roots
2020-06-18 05:40:04 -04:00
Duke Leto
4800f497aa
Fix copyright
2020-06-17 22:32:00 -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
36e917f1d3
copyright
2020-06-17 20:43:58 -04:00
Duke Leto
646c68490b
cleanup
2020-06-17 17:53:12 -04:00
Duke Leto
f8972d4150
Remove mention of joinsplit from some error messages
2020-06-17 17:49:18 -04:00
Duke Leto
280cc4cfda
oops
2020-06-17 12:36:08 -04:00
Duke Leto
6e31ee3b1d
fix
2020-06-17 10:41:33 -04:00
Duke Leto
d0dade1d2c
desprout
2020-06-17 10:13:57 -04:00
Duke Leto
4de60497c8
Refactor GetSaplingWitnesses code and add some logging
2020-06-17 00:04:55 -04:00
Duke Leto
7f7876d208
oops
2020-06-16 12:25:47 -04:00
Duke Leto
a470c4e251
get rid of z2zforkheight which causes linker bugz
2020-06-16 12:21:30 -04:00
Duke Leto
0c5923d749
Revert "HUSH dpow"
...
This reverts commit 40f68d0d05 .
2020-06-16 12:04:12 -04:00
Duke Leto
94134862e5
try to make linker happy
2020-06-16 11:44:38 -04:00
Duke Leto
40f68d0d05
HUSH dpow
2020-06-16 11:43:18 -04:00
Duke Leto
07d7aacd90
destake
2020-06-16 11:24:12 -04:00
Duke Leto
b5c9453129
Declare S4 to have happened already. This is now now
2020-06-16 10:46:25 -04:00