Commit Graph

4228 Commits

Author SHA1 Message Date
Evan Duffield
6b0c7f3c4f add a couple sanity checks to GetLastValidBlockHash 2015-02-02 12:27:07 -07:00
Evan Duffield
1f828f45ec fixed regtest+ds issues 2015-02-02 11:10:17 -07:00
Evan Duffield
2992907d91 Better DOS protection, fixed min confirmations 2015-02-02 10:33:52 -07:00
Evan Duffield
6c4a6f6583 signal transaction update 2015-02-02 08:04:09 -07:00
Evan Duffield
d07014ce1e add simple dos protection / IX vote class improvements 2015-02-02 07:38:50 -07:00
Evan Duffield
d512124bad Much lower bandwidth requirements for IX 2015-02-02 05:24:04 -07:00
Evan Duffield
5b0d0146b0 only update when tx is found 2015-02-02 05:06:43 -07:00
Evan Duffield
b59ba777fc only relay signatures to subscribing peers 2015-02-02 05:01:06 -07:00
Evan Duffield
13246598b8 Added dstx support for free transactions 2015-02-02 04:42:41 -07:00
vertoe
aa39f11fa2 Pull translations from transifex. 2015-02-02 12:27:38 +01:00
Evan Duffield
7e38235e5a Added masternode payee caching 2015-02-02 04:05:21 -07:00
Evan Duffield
837fe9b417 protocol bump / version bump 2015-02-01 15:49:24 -07:00
evan82
ea967b53a2 Merge pull request #147 from vertoe/devel-0.9
Complete russian, spanish and german translation
2015-02-01 13:41:21 -07:00
Evan Duffield
2feb0fd2f8 fixed hashing for IX 2015-02-01 13:37:20 -07:00
Evan Duffield
6c8b23c0b2 return 0 for incomplete tx locks 2015-02-01 13:14:31 -07:00
Evan Duffield
c9585c7747 added set expiration for IX, cleaned up messages 2015-02-01 13:04:20 -07:00
Evan Duffield
e0c26e4c11 debugging for IX 2015-02-01 11:02:36 -07:00
Evan Duffield
a0d5f92f87 improvements to IsTransactionLocked 2015-02-01 10:47:56 -07:00
Evan Duffield
1377b71347 ignore IX confirmations when forming new tx 2015-02-01 10:21:43 -07:00
Evan Duffield
b1d701275a only use inputs with 5 confirmations for IX 2015-02-01 09:30:58 -07:00
Evan Duffield
d3763f6f82 search inputs separately for IX 2015-02-01 09:16:31 -07:00
Evan Duffield
8164721b25 Merge branch 'v0.11.1.x' of https://github.com/darkcoinproject/darkcoin into v0.11.1.x 2015-02-01 09:07:04 -07:00
Evan Duffield
a3077626b5 various improvements to IX 2015-02-01 08:53:49 -07:00
vertoe
14e7982ed3 Finish german translation. 2015-02-01 13:19:52 +01:00
vertoe
8ce1b7c71d Merge vietnamese translations. 2015-02-01 09:42:32 +01:00
vertoe
d6905f607a Finish spanish translations. 2015-02-01 09:29:14 +01:00
vertoe
f5e740d57e Pull translations from transifex. 2015-02-01 09:23:04 +01:00
vertoe
0a752de0f0 Pull translations from transifex. 2015-02-01 00:16:03 +01:00
vertoe
d167228cee Pull translations from transifex. 2015-01-31 23:29:24 +01:00
vertoe
cddde832d6 Merge bitcoin translations. 2015-01-31 23:11:26 +01:00
vertoe
99204999e9 Pull translations from transifex. 2015-01-31 22:06:37 +01:00
vertoe
6a685db76c Pull translations from transifex. 2015-01-31 21:15:38 +01:00
vertoe
69d93bbbd9 Pull translations from transifex. 2015-01-31 20:31:16 +01:00
vertoe
1333864674 Update bitcoinstrings. 2015-01-31 19:47:23 +01:00
vertoe
be3041e88c Pull translations from transifex. 2015-01-31 19:17:24 +01:00
evan82
9f33c1e5f9 Merge pull request #144 from UdjinM6/fix_doauto_on_initial_download
prevent running DoAutomaticDenominating while IsInitialBlockDownload
2015-01-30 12:57:54 -07:00
evan82
53a499fc47 Merge pull request #143 from vertoe/devel-0.9
Start translating darkcoin core correctly
2015-01-30 07:48:25 -07:00
evan82
b4b88e1cc3 Merge pull request #141 from UdjinM6/fix_coincontrol_crash
fix coin control crash
2015-01-30 07:47:10 -07:00
evan82
2158023d4c Merge pull request #139 from UdjinM6/fix_more_usage_of_IsDenominatedAmount
use IsDenominatedAmount instead of loops and GetInputDarksendRounds where applicable
2015-01-30 07:41:59 -07:00
evan82
366435253f Merge pull request #138 from UdjinM6/fix_AvailableCoins
always get only confirmed coins by AvailableCoins for every DS relative action
2015-01-30 07:40:13 -07:00
vertoe
83c0c532f6 Pull translations from transifex. 2015-01-30 15:03:21 +01:00
vertoe
6adc5031b3 Add darkcoin translations to makefiles 2015-01-30 14:27:28 +01:00
vertoe
42980cc44b Add darkcoin translations 2015-01-30 14:25:14 +01:00
vertoe
a5ef471326 Fix translation makefiles and documentation. 2015-01-30 12:31:22 +01:00
vertoe
64438577e0 Prepare transifex integration. 2015-01-30 11:39:55 +01:00
UdjinM6
bf45840527 fix coin control crash https://github.com/bitcoin/bitcoin/pull/5700 2015-01-30 04:13:14 +03:00
UdjinM6
1ecbfd09d7 prevent running DoAutomaticDenominating while IsInitialBlockDownload 2015-01-30 01:19:41 +03:00
UdjinM6
52dabd1166 always get only confirmed coins by AvailableCoins 2015-01-30 01:15:04 +03:00
UdjinM6
84b0e6f587 use IsDenominatedAmount instead of loops and GetInputDarksendRounds where applicable 2015-01-29 13:36:18 +03:00
evan82
3edcf4beda Merge pull request #137 from UdjinM6/fix_ds_progress
fix updateDarksendProgress / add isDenominatedAmount and GetNormalizedAnonymizedBalance - v0.11.1.x
2015-01-28 11:59:51 -07:00
UdjinM6
6f7f19fdcc fix updateDarksendProgress / add isDenominatedAmount and GetNormalizedAnonymizedBalance 2015-01-28 10:35:17 +03:00
Evan Duffield
5c7b132841 version bump / enable IX 2015-01-27 14:52:31 -07:00
Evan Duffield
7fafe5d3e1 revert changes to WalletModel::getAnonymizedBalance() 2015-01-27 11:01:25 -07:00
Evan Duffield
11ec24bc36 version bump 2015-01-27 11:00:02 -07:00
evan82
1598d8e7a6 Merge pull request #134 from UdjinM6/fix_creating_denominated
fixing pre-mix process of creation denominated amounts
2015-01-27 10:57:35 -07:00
Evan Duffield
c6eba54e65 Much faster block processing 2015-01-27 07:46:06 -07:00
Evan Duffield
de8a436363 fix overpaying for DSTX 2015-01-27 07:29:25 -07:00
UdjinM6
287ea11a25 make collateral inputs from all available inputs but not from mn-like 2015-01-27 07:39:27 +03:00
UdjinM6
a07d637a48 don't use collateral amounts on CreateDenominated / make collateral inputs from all available coins and not only from non-denominated / IsCollateralAmount function 2015-01-27 07:13:34 +03:00
Evan Duffield
61b3ce76eb Merge branch 'master' of https://github.com/darkcoin/darkcoin 2015-01-26 15:56:02 -07:00
Evan Duffield
69ca88c491 Darksend rounds default/litemode changes
4 rounds should be more than enough
2015-01-26 15:54:12 -07:00
evan82
61b84c9dd7 Merge pull request #132 from UdjinM6/fix_crash_coinsview
Catch UTXO set read errors and shutdown
2015-01-26 15:46:13 -07:00
Evan Duffield
71e074336b Update dseg limitations
vecMasternodes.size() == 0 is a nearly impossible condition due to the behavior
of dseep. Each time a node receives a ping where it's unaware of the masternode
it will ask for the dsee from it's peer.
-        if(c % 5 == 0 && (RequestedMasterNodeList <= 2 || vecMasternodes.size()
+        if(c % 5 == 0 && RequestedMasterNodeList < 3){
2015-01-26 11:03:36 -07:00
UdjinM6
144b24bee5 more fixes/cleanup/debug output to DS mixing 2015-01-26 00:18:26 +03:00
UdjinM6
9a4fac6bb6 fixing pre-mix process of creation denominated amounts 2015-01-25 02:57:55 +03:00
UdjinM6
aa544887d7 ported from 13cdce4336 2015-01-24 20:31:19 +03:00
Evan Duffield
385c532df8 Updated checkpoints 2015-01-24 07:51:34 -07:00
Evan Duffield
90ad641d39 Check pindexBestForkBase/phashBlock both for null 2015-01-23 13:44:25 -07:00
Evan Duffield
3b140b22d7 version bump 2015-01-23 07:56:30 -07:00
Evan Duffield
935ab9e252 Merge branch 'master' of https://github.com/darkcoin/darkcoin 2015-01-23 07:48:52 -07:00
Evan Duffield
26ebf1d7cb Fixed segfault causes by coins view 2015-01-23 07:48:39 -07:00
evan82
f3710ec4de Merge pull request #130 from UdjinM6/fix_mn_payments_percent_schedule_comments
fix mn payment comment - blocknumbers / new dates according to stats from last 50k blocks
2015-01-23 06:59:00 -07:00
evan82
782bcc6850 Merge pull request #129 from UdjinM6/fix_cmdline_help
add missing DS/MN/IX options descriptions in help output
2015-01-23 06:54:47 -07:00
evan82
05f511f740 Merge pull request #128 from UdjinM6/fix_allow_masternode_in_safemode
allow masternode commands execution while client is in safemode
2015-01-23 06:54:23 -07:00
UdjinM6
d7bd499722 fix mn payment comment - blocknumbers / new dates according to stats from last 50k blocks 2015-01-23 16:37:58 +03:00
Evan Duffield
7e087dadb9 Merge branch 'master' of https://github.com/darkcoin/darkcoin 2015-01-23 06:29:27 -07:00
Evan Duffield
3aa0a68e00 Check pindexBestForkBase->phashBlock for NULL reference 2015-01-23 06:29:06 -07:00
UdjinM6
bf312bcead add missing DS/MN/IX options descriptions in help output 2015-01-22 19:31:52 +03:00
UdjinM6
2dc22e9dbe allow masternode commands execution while client is in safe mode 2015-01-22 17:26:29 +03:00
UdjinM6
ed49131f96 fix dseg messaging / banning issue 2015-01-22 03:04:52 +03:00
Evan Duffield
70eb4efd2f fixed 2015-01-21 16:12:04 -07:00
Evan Duffield
0918dab39b fixed "masternode start" for remote masternodes after start 2015-01-21 14:57:02 -07:00
Evan Duffield
e6a937196d version & protocol bump 2015-01-21 08:03:14 -07:00
Darkcoin
8f88c50035 Merge pull request #126 from UdjinM6/fix_ds_toggle_unlock
fix unlocking wallet on ds toggle event
2015-01-21 08:00:40 -07:00
Darkcoin
6ef9ba118b Merge pull request #125 from UdjinM6/fix_ds_incorrect_txes
Fix incorrect DS txes + few small things including some cleanup / debugging
2015-01-21 08:00:01 -07:00
Evan Duffield
2c8d7299d7 Merge branch 'master' of https://github.com/darkcoin/darkcoin 2015-01-21 07:57:39 -07:00
Evan Duffield
78fe35f06d Implemented DarkSend convertability
Darksend defaults to a new mode which enables inputs/outputs
of each session to be different. For example 10DRK can be input
and 1DRKx10 can be output. This strengthens the anonymity of
Darksend greatly, which also increasing the usability (Users who
run out of .1DRK denominations can simply turn on Darksend to
split up larger inputs).
2015-01-21 07:55:21 -07:00
UdjinM6
da96ad5063 fix unlocking wallet on ds toggle - should just check for passphrase here and then use the same conditions as unencrypted 2015-01-21 09:29:09 +03:00
UdjinM6
c91b5202b7 fix ds incorrect txes issue / lowestDenom logic / styling 2015-01-21 09:09:04 +03:00
Darkcoin
625e29334d Merge pull request #110 from vertoe/devel-0.9-tools
Creat a tools menu with info, console and network items.
2015-01-20 14:34:13 -07:00
Evan Duffield
bbd869589c Collateral issues / Exact denoms / Disabled denoms
- When attempting to connect to a masternode for submission into the pool a recursive call to DoAutoDenominate was used. This could possibly take more than 1 minute to complete if it found a string of bad masternodes, in which case the correct masternode was overwritten and replaced with an invalid one. Upon submission, the DS TX was given to the incorrect node causing collateral to be charged.
- To fix this I've removed the recursion and added a critical section to DoAutoDenominate.
- Exact input denominations are matched in PrepareDarksendDenominate to remove the possibility of having change in the pool
- Removed disabled denominations, not needed anymore
2015-01-20 10:33:52 -07:00
Evan Duffield
3322b029ec replaced IsInitialBlockDownload with more basic/faster check 2015-01-20 03:39:04 -07:00
Evan Duffield
47bb25d853 disable checktimeout when disabled 2015-01-20 03:32:32 -07:00
Evan Duffield
678a43c35b disable reference node code when key is not present 2015-01-20 03:02:11 -07:00
Evan Duffield
b40bfacb55 improved anonymity for smaller wallets 2015-01-20 02:42:15 -07:00
Evan Duffield
31215c3a63 print lite mode status in log 2015-01-20 02:10:57 -07:00
Evan Duffield
bbc44f415f lite mode disable checks on block 2015-01-20 02:08:26 -07:00
Evan Duffield
2737edbbf3 Removed non-denomational inputs (UdjinM6)
Exact amounts are now allocated directly to denominated
funds then submitted to the pool. This improves anonymity
by never having non-denomination inputs enter or exit the pool.
Randomness has also been added to the amount of each session to
improve anonymity.
2015-01-19 20:12:10 -07:00
Evan Duffield
b7f436bb5c version bump 2015-01-19 09:25:13 -07:00
vertoe
40a11fbc6b merge downstream 0.11.0 2015-01-19 10:04:24 +01:00
Evan Duffield
6dd7e0f1ce corrected getblocktemplate coinbasevalue output 2015-01-18 12:49:47 -07:00
Evan Duffield
908b105ded Merge branch 'master' of https://github.com/darkcoin/darkcoin 2015-01-18 08:29:35 -07:00
Evan Duffield
539a8683a4 Added LiteMode
LiteMode disables Darksend/Masternodes/InstantX for clients
who want speed and don't need access to these features. UI
for Darksend is also hidden while in this mode.
2015-01-18 08:28:16 -07:00
Darkcoin
b5e4d58e96 Merge pull request #118 from freynder/keepass
Cleaned up debug log and adhere to coding conventions
2015-01-18 08:11:30 -07:00
Francis Reynders
f0450ab022 Cleaned up debug log and set curly braces according to coding conventions
- write to debug log only when debug option is specified
- do not log communication data that can contain secure information
- use newinline for curly braces according to coding conventions
2015-01-18 15:59:41 +01:00
Darkcoin
daab1083cf Merge pull request #116 from UdjinM6/110x_ds_fix2
110x ds fix2
2015-01-18 07:40:45 -07:00
UdjinM6
0a7f74ea13 fix low res of icns 2015-01-17 02:11:32 +03:00
Evan Duffield
b329a2f19b version bump 2015-01-16 14:00:48 -07:00
vertoe
333d5ae781 Creat a tools menu with info, console and network items. 2015-01-16 10:55:24 +01:00
UdjinM6
33a7c539ba another attempt to simplify ds and fix some issues 2015-01-15 17:41:56 +03:00
vertoe
60b6ef59dd Mix 8 rounds default. 2015-01-15 13:45:03 +01:00
vertoe
afa587176c Fix typos. 2015-01-15 13:27:46 +01:00
vertoe
0a1d09aeff Adapt BIP44 coin type 5 for Darkcoin (placeholder). 2015-01-15 12:55:50 +01:00
vertoe
389ff61339 merge downstream 0.11 2015-01-15 12:42:28 +01:00
vertoe
b8e53a337c merge devel-0.9 2015-01-15 12:40:25 +01:00
vertoe
c664137c9a Use display unit instead of hardcoded DRK for darksend settings and set max to 16 rounds 2015-01-15 12:38:03 +01:00
vertoe
fb312b0cd3 Use display unit instead of hardcoded DRK for darksend hint 2015-01-15 12:20:09 +01:00
vertoe
a80da619a7 Use display unit instead of hardcoded DRK for darksend warning 2015-01-15 12:15:01 +01:00
vertoe
36acf7e57a Use display unit instead of hardcoded DRK for darksend settings 2015-01-15 12:07:00 +01:00
vertoe
e6ce27defd Update copyright year 2015 2015-01-15 11:31:35 +01:00
Evan Duffield
7a1f2192a7 Fixed UI update bug 2015-01-14 10:16:48 -07:00
Evan Duffield
8038fdfcff Rounds calculation stopped at 8 2015-01-14 07:52:43 -07:00
Evan Duffield
1dea6cb2cc Rounds calculation stopped at 8 2015-01-14 07:50:40 -07:00
Evan Duffield
201b3fb77e Fixed performance issues with --reindex 2015-01-14 07:28:35 -07:00
Evan Duffield
cf6ecddf21 updated mac icons 2015-01-13 12:39:52 -07:00
Evan Duffield
cd5c755428 Coinbase Maturity / cleanup 2015-01-13 10:58:24 -07:00
Evan Duffield
0739536ec0 windows compilation fix 2015-01-13 07:08:58 -07:00
Evan Duffield
88d1e63f72 changed max rounds to 16 2015-01-12 13:07:48 -07:00
Evan Duffield
4ab6c5d6da Fixed masternode payments issue 2015-01-12 12:05:20 -07:00
Darkcoin
984c923ac5 Merge pull request #106 from vertoe/devel-0.9
OpenSSL 1.0.1k handling of DER signatures
2015-01-12 10:54:32 -07:00
Darkcoin
44bb7c809a Merge pull request #105 from UdjinM6/110x_fix_mn_conf_read
"path" argument isn't used in masternode conf read function
2015-01-12 10:52:56 -07:00
Darkcoin
3dcdfc6ff2 Merge pull request #96 from freynder/keepass
Implemented KeePass Integration
2015-01-12 10:52:07 -07:00
Evan Duffield
76ab102ff7 Various fixes for 11.0.5
-Darksend balance shows sendable amount now.
-Fixed "darksend is disabled" inaccurate message
-Fixed crashing on -reindex and -gen
2015-01-12 10:04:28 -07:00
vertoe
4269e16f0d merge downstream 0.11.x 2015-01-12 16:04:47 +01:00
Evan Duffield
5c16596b01 Fixed darksend balance update on click 2015-01-12 07:10:38 -07:00
Evan Duffield
7098126b52 Fix for random segfaultfrom Masternode::Check 2015-01-12 06:58:33 -07:00
vertoe
daf9018b7f merge upstream 0.9.4 2015-01-12 11:08:50 +01:00
Wladimir J. van der Laan
be8ac71d96
Bump version to 0.9.4 2015-01-12 10:33:39 +01:00
Wladimir J. van der Laan
f6b753912b
qt: Pull updated translations from Transifex 2015-01-12 10:17:54 +01:00
Wladimir J. van der Laan
037bfefe6b
Improve robustness of DER recoding code
Add some defensive programming on top of #5634.

This copies the respective OpenSSL code in ECDSA_verify in
OpenSSL pre-1.0.1k (e.g. https://github.com/openssl/openssl/blob/OpenSSL_1_0_1j/crypto/ecdsa/ecs_vrf.c#L89)
more closely.

As reported by @sergiodemianlerner.

Github-Pull: #5640
Rebased-From: c6b7b29f23
2015-01-12 09:28:24 +01:00
vertoe
ebb7eab77d Merge downstream v0.11.0.x 2015-01-12 07:45:47 +01:00
vertoe
928613c03c merge branch '0.9' of https://github.com/bitcoin/bitcoin into devel-0.9 2015-01-12 07:42:34 +01:00
Evan Duffield
560cf0e7a0 Merge branch 'v0.11.0.x' of https://github.com/darkcoin/darkcoin into v0.11.0.x 2015-01-11 11:01:31 -07:00
Evan Duffield
f1e2c1e031 Fix Masternode::Check() Segfault
Client crashes about every 24h on mainnet (with lots of masternodes)
and very rarely on testnet. AcceptableInputs has no need to check
HaveCoins as AcceptToMemoryPool does and would rarely cause the
segfault to occur.
2015-01-11 10:59:36 -07:00
Darkcoin
f8c907d806 Merge pull request #104 from UdjinM6/110x_dsbalance
add darksend balance to getinfo
2015-01-11 10:56:45 -07:00
UdjinM6
560b06fc38 no need to get conf file in function call 2015-01-11 20:28:28 +03:00
Wladimir J. van der Laan
60c51f1c38
fail immediately on an empty signature
Github-Pull: #5634
Rebased-From: 8dccba6a45
2015-01-10 08:58:47 +01:00
Cory Fields
b8e81b7ccd
consensus: guard against openssl's new strict DER checks
New versions of OpenSSL will reject non-canonical DER signatures. However,
it'll happily decode them. Decode then re-encode before verification in order
to ensure that it is properly consumed.

Github-Pull: #5634
Rebased-From: 488ed32f2a
2015-01-10 08:31:14 +01:00
Evan Duffield
6814d137fd check ports in masternode.conf 2015-01-09 12:45:41 -07:00
Evan Duffield
c1fde4da39 version bump - 11.4 2015-01-08 15:22:33 -07:00
Evan Duffield
a3416f9441 fixed display issues for Darksend transaction 2015-01-08 15:21:05 -07:00
Evan Duffield
6bd5ec15b3 Unlock coins when using Darksend reset button 2015-01-08 14:16:17 -07:00
Evan Duffield
e73403b5ac Merge branch 'v-1.11.0.x' of https://github.com/darkcoin/darkcoin into v0.11.0.x 2015-01-08 14:11:41 -07:00
Evan Duffield
9ad42576e9 schedule masternode payments to turn on 1/9/2015 2015-01-08 14:11:05 -07:00
UdjinM6
eb7abd8ba7 add darksend balance to getinfo 2015-01-08 21:19:39 +01:00
Darkcoin
4a6d17ef18 Merge pull request #103 from crowning-/patch-3
Non-void function should always return something.
2015-01-08 11:12:37 -07:00
Evan Duffield
caa4fc37af Updated getblocktemplate for mining support 2015-01-08 11:02:10 -07:00
Evan Duffield
3c553cc4a7 Fixed start-many issue with multiple output tx
masternode.conf was broken when any index other than 0 was
used. This fixes it and allows the correct input to be selected
and the masternode to be started successfully.
2015-01-08 09:05:59 -07:00
crowning-
371a16a924 Non-void function should always return something. 2015-01-06 22:05:39 +01:00
Evan Duffield
6df70d30b1 Fixed progress bar / Improve GetDenominatedBalance
- Fixed a few issues when calculating progress including some variables that should be limited to 1 (a and b). GetDenominatedBalance also seemed to be giving bad results so I rewrote it to be cleaner, not sure if that was a part of the problem.
- Progress bar is only recalculated when all inputs in wallet have been confirmed (will stop the progress from jumping around)
2015-01-02 15:20:30 -07:00
Evan Duffield
8ab351a594 configure.ac version bump and documentation 2015-01-02 11:45:40 -07:00
Evan Duffield
12bac4a862 gitian changes, tooltips and version bump 2015-01-02 09:54:13 -07:00
Evan Duffield
58b8f19d2d updated to v2 2015-01-02 08:35:31 -07:00
Darkcoin
ec6877bd18 Merge pull request #98 from vertoe/devel-0.9
Update pixmaps
2015-01-02 08:31:44 -07:00
Evan Duffield
899063acf8 Fixed windows crashing issues
Crash was caused by Params() usage in CDarkSendPool::CDarkSendPool upon wallet start. I've moved init of the collateral address outside of the class to CDarkSendPool.InitCollateralAddress() instead.
2015-01-02 07:49:44 -07:00
vertoe
295b7294e6 Update wallet name to Darkcoin 2015-01-02 14:58:25 +01:00
crowning-
6a93a7c47b Exclude localnet addresses
127.0.0.* addresses shouldn't show up in "masternode list"
2015-01-01 20:18:23 +01:00
Francis Reynders
bdb50539de Implemented KeePass Integration
More info regarding KeePass: http://keepass.info/

KeePass integration will use KeePassHttp (https://github.com/pfn/keepasshttp/) to facilitate communications between the client and KeePass. KeePassHttp is a plugin for KeePass 2.x and provides a secure means of exposing KeePass entries via HTTP for clients to consume.

The implementation is dependent on the following:
- crypter.h for AES encryption helper functions.
- rpcprotocol.h for handling RPC communications. Could only be used partially however due some static values in the code.
- OpenSSL for base64 encoding. regular util.h libraries were not used for base64 encoding/decoding since they do not use secure allocation.
- JSON Spirit for reading / writing RPC communications

The following changes were made:
- Added CLI options in help
- Added RPC commands: keepass <genkey|init|setpassphrase>
- Added keepass.h and keepass.cpp which hold the integration routines
- Modified rpcwallet.cpp to support RPC commands

The following new options are available for darkcoind and darkcoin-qt:
  -keepass               Use KeePass 2 integration using KeePassHttp plugin (default: 0)
  -keepassport=<port>    Connect to KeePassHttp on port <port> (default: 19455)
  -keepasskey=<key>      KeePassHttp key for AES encrypted communication with KeePass
  -keepassid=<name>      KeePassHttp id for the established association
  -keepassname=<name>    Name to construct url for KeePass entry that stores the wallet passphrase

The following rpc commands are available:
- keepass genkey: generates a base64 encoded 256 bit AES key that can be used for the communication with KeePassHttp. Only necessary for manual configuration. Use init for automatic configuration.
- keepass init: sets up the association between darkcoind and keepass by generating an AES key and sending an association message to KeePassHttp. This will trigger KeePass to ask for an Id for the association. Returns the association and the base64 encoded string for the AES key.
- keepass setpassphrase <passphrase>: updates the passphrase in KeePassHttp to a new value. This should match the passphrase you intend to use for the wallet. Please note that the standard RPC commands walletpassphrasechange and the wallet encrption from the QT GUI already send the updates to KeePassHttp, so this is only necessary for manual manipulation of the password.

Sample initialization flow from darkcoin-qt console (this needs to be done only once to set up the association):
- Have KeePass running with an open database
- Start darkcoin-qt
- Open console
- type: "keepass init" in darkcoin-qt console
- (keepass pops up and asks for an association id, fill that in). Example: mydrkwallet
- response: Association successful. Id: mydrkwalletdarkcoin - Key: AgQkcs6cI7v9tlSYKjG/+s8wJrGALHl3jLosJpPLzUE=
- Edit darkcoin.conf and fill in these values
    keepass=1
    keepasskey=AgQkcs6cI7v9tlSYKjG/+s8wJrGALHl3jLosJpPLzUE=
    keepassid=mydrkwallet
    keepassname=testwallet
- Restart darkcoin-qt

At this point, the association is made. The next action depends on your particular situation:
- current wallet is not yet encrypted. Encrypting the wallet will trigger the integration and stores the password in KeePass (Under the 'KeePassHttp Passwords' group, named after keepassname.
- current wallet is already encrypted: use "keepass setpassphrase <passphrase>" to store the passphrase in KeePass.

At this point, the passphrase is stored in KeePassHttp. When Unlocking the wallet, one can use keepass as the passphrase to trigger retrieval of the password. This works from the RPC commands as well as the GUI.
2015-01-01 20:06:24 +01:00
Evan Duffield
4eb14d271b Change minversion to 70046 2015-01-01 11:15:24 -07:00
vertoe
9cc07aec1c Hotfix for version.h 2015-01-01 19:03:25 +01:00
Evan Duffield
f46ec0db80 Change minversion to 70046 2015-01-01 10:46:18 -07:00
Evan Duffield
447ae896c0 Merge branch 'v0.11.0.x' of https://github.com/darkcoin/darkcoin into v0.11.0.x 2015-01-01 09:12:53 -07:00
Evan Duffield
b87c2fe9dc Fix for gitian windows compiling 2015-01-01 09:12:28 -07:00
Darkcoin
c1269e7850 Merge pull request #92 from vertoe/devel-0.9
Update darkcoin units to tDRK if TestNet().
2015-01-01 07:49:58 -07:00
Darkcoin
a29b991091 Merge pull request #93 from vertoe/devel-0.9-bip0032
Update BIP32 base58 address prefixes to darkcoin uniques.
2015-01-01 07:49:12 -07:00
vertoe
024e255a5b Update BIP32 base58 address prefixes to darkcoin uniques. 2014-12-31 13:50:14 +01:00
vertoe
54f54f4a67 Update darkcoin units to tDRK if TestNet(). 2014-12-31 13:27:32 +01:00
Evan Duffield
d219a6c51a randomly sort masternodes before picking next winner 2014-12-30 22:45:45 -07:00
Evan Duffield
bc20787fec Added perfectly balanced masternode payments
- Implemented using a simple round robin algorithm instead of the deterministic round robin approach (was slightly unbalanced)
2014-12-30 22:40:53 -07:00
Evan Duffield
826b18c41f Regtest+Darksend / Dsee update / vecMasternodes
- Made masternodes/darksend compatible with regression testing mode (a local-only blockchain that doesn't require mining). Developers can now test multiple rounds in a few minutes without waiting on mining (much faster).
- Added dsee security verification to v11
- darkSendMasternodes -> vecMasternodes (must clearer)
2014-12-30 19:54:00 -07:00
Evan Duffield
a290bc06f2 Further improvements to the matching engine 2014-12-30 15:42:50 -07:00
Evan Duffield
80144a47ab Disable local addresses 2014-12-30 14:41:28 -07:00
Evan Duffield
75b169e2aa Simplified CWallet::PrepareDarksendDenominate 2014-12-30 14:00:19 -07:00
Evan Duffield
141f833a00 Matching engine improvements
Fixed issues with matching from rounds 0 to 2
2014-12-30 12:42:34 -07:00
Evan Duffield
aa63a99162 Percision matching engine / masternode regtest
- Fixed matching engine issue causing false positive non-denominational matches
- Basic masternode support for regtest (still not working)
2014-12-30 11:14:58 -07:00
Evan Duffield
b20581125d Added Darksend high precision matching engine
Darksend is now capable of taking queue objects (which show who wants to mix what)
and looking at it's own inputs to see if it's at all possible to join their mixing
session. This plus other improvements should make Darksend much faster for mixing
coins.
2014-12-29 17:09:34 -07:00
Evan Duffield
762080140b Various Darksend Improvements
- Denomination label shows n/a after reset now
- Fixed collateral checking bug introduced by updating to Bitcoin v9 codebase
2014-12-29 08:50:40 -07:00
Evan Duffield
139f14a1a4 Enabled Darksend NewBlock checks 2014-12-28 17:33:56 -07:00
Evan Duffield
afcc015cf4 Report errors delivered via dssu to gui 2014-12-28 07:46:39 -07:00
Evan Duffield
34a60fb7de Much improved feedback for Darksend
DoAutoDenomination just wrote to the debug.log and because of that users commonly would have a hard time seeing what was happening. This fixes that by setting a status and displaying that status in the overview.
2014-12-27 18:08:45 -07:00
Evan Duffield
3acb5c6388 added denomination information to overview, reset/try again buttons 2014-12-27 16:45:07 -07:00
Evan Duffield
ff8285060d Merge branch 'v0.11.0.x' of https://github.com/darkcoin/darkcoin into v0.11.0.x 2014-12-27 08:28:47 -07:00
Evan Duffield
36aa6bd675 fixed message magic, should be DarkCoin 2014-12-27 08:28:23 -07:00
UdjinM6
142ff7a3ab restrict start if masternode.conf has incorrect format / move error message out of debug.log to stderr/qt-dialog 2014-12-27 15:47:08 +03:00
vertoe
ab52409f0e Merge branch 'v0.11.0.x' of https://github.com/darkcoin/darkcoin into devel-0.9 2014-12-27 00:55:52 +01:00
vertoe
86cc5d35cc Update client name 2014-12-27 00:54:59 +01:00
vertoe
2a4e872364 Change orange to blue 2014-12-27 00:54:25 +01:00
vertoe
d2d798c9b0 Merge branch 'devel-0.9-keys' into devel-0.9 2014-12-27 00:33:22 +01:00
vertoe
bdaa900bbe Update strings in UI. 2014-12-27 00:16:50 +01:00
Darkcoin
dc71c6df25 Merge pull request #85 from vertoe/devel-0.9-keys
Change pubkey addresses for multisig addresses and testnet.
2014-12-26 16:00:14 -07:00