Wallet/test
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
..
lib added angularjs test configs 2014-04-23 14:56:03 -03:00
mocks add nonce support to WebRTC and Wallet 2014-07-08 23:03:30 -07:00
unit Merge pull request #862 from yemel/fix/address-list 2014-07-08 15:05:55 -03:00
index.html more tests 2014-07-08 19:52:47 -03:00
mocha.conf.js run js-beautify on everything 2014-06-24 08:36:32 -07:00
mocha.opts wallet model and test WIP 2014-03-26 15:26:31 -03:00
test.AddressIndex.js Add some test and refactor getCosigner 2014-07-04 09:45:02 -03:00
test.API.js run js-beautify on everything 2014-06-24 08:36:32 -07:00
test.blockchain.Insight.js add stub to _request 2014-07-07 19:33:59 -03:00
test.Message.js add support for 8 byte big endian nonce to Message 2014-07-08 20:02:37 -07:00
test.network.WebRTC.js add nonce support to WebRTC and Wallet 2014-07-08 23:03:30 -07:00
test.Passphrase.js run js-beautify on everything 2014-06-24 08:36:32 -07:00
test.performance.js remove slow tests 2014-04-18 12:01:56 -03:00
test.PrivateKey.js add preconditions to Structure.js 2014-06-25 11:10:11 -03:00
test.PublicKeyRing.js Add tests 2014-07-08 15:54:10 -03:00
test.storage.File.js run js-beautify on everything 2014-06-24 08:36:32 -07:00
test.storage.LocalEncrypted.js more tests 2014-07-08 19:52:47 -03:00
test.Structure.js add Structure test 2014-07-03 13:13:45 -03:00
test.TxProposals.js PublicKeyRing handles one index for each cosigner 2014-07-03 16:42:29 -03:00
test.Wallet.js add nonce support to WebRTC and Wallet 2014-07-08 23:03:30 -07:00
test.WalletFactory.js add nonce support to WebRTC and Wallet 2014-07-08 23:03:30 -07:00