copay/test/mocks
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
..
FakeBlockchain.js optimize redeemscript map generation 2014-06-24 17:08:53 -03:00
FakeLocalStorage.js . 2014-07-08 20:05:41 -03:00
FakeNetwork.js add nonce support to WebRTC and Wallet 2014-07-08 23:03:30 -07:00
FakeStorage.js fix tests 2014-06-17 14:02:39 -03:00
FakeWallet.js Update tests 2014-07-08 15:54:10 -03:00