Commit Graph

7 Commits

Author SHA1 Message Date
Manuel Araoz 0d22524885 fix test after rebase 2014-08-26 11:43:43 -03:00
Manuel Araoz e7967486a3 remove soop dependency 2014-08-15 17:46:47 -04:00
Ryan X. Charles 88ab38eb00 add nonce support to WebRTC and Wallet
Each person keeps track of their own nonce, and the nonces of the other
copayers. The nonce is iterated for each message. If a person ever doesn't
iterate their nonce, that message is discarded by the copayers.

The nonces are saved as networkNonce (your nonce) and networkNonces (the nonces
of your copayers) in the wallet file.

In order to support restoring old wallets, the first four bytes of the 8 byte
nonce are actually the current time in seconds. Thus you can restore an old
wallet, because certainly at least one second has passed since your last
message. Only if you try to restore an old wallet within 1 second from the time
of your last message will you have a problem (or if your system clock is
grossly inaccurate).
2014-07-08 23:03:30 -07:00
Ryan X. Charles ea2e2d4e19 run js-beautify on everything
...with two spaces. Command: js-beautify -s 2 -r [filename]
2014-06-24 08:36:32 -07:00
Manuel Araoz 84b3752a58 add coverage, skip failing tests 2014-06-09 11:19:53 -03:00
Manuel Araoz 86016de19d add new tests for new reconnect feature 2014-06-03 13:07:31 -03:00
Manuel Araoz d62dbeffca WIP for automatic network join 2014-04-18 14:40:40 -03:00