Commit Graph

75 Commits

Author SHA1 Message Date
Manuel Araoz bf4d9fe41f remove soop from js 4 2014-08-15 17:46:48 -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 a1155c2798 add support for 8 byte big endian nonce to Message
...network protocol is backwards incompatible with previous network protocl.
also includes a second version number for backwards-compatible changes (the
original version number was for backwards-incompatible changes).
2014-07-08 20:02:37 -07:00
Matias Alejo Garcia c0338a1f43 add .bind 2014-07-08 15:31:03 -03:00
Matias Alejo Garcia bbac45ee7a fixes handling networking errors and retries. Adds tests 2014-07-08 15:25:12 -03:00
Matias Alejo Garcia 2626414771 Merge pull request #830 from yemel/fix/peer-id-taken
Derive token from cid, bring back the custom version of peerjs
2014-07-07 15:55:46 -03:00
Yemel Jardi f8ea3a4090 Derive token from cid, bring back the custom version of peerjs 2014-07-07 11:29:28 -03:00
Matias Alejo Garcia 5ba388e911 add testnet in footer / add links 2014-07-03 11:37:26 -03:00
Ryan X. Charles c0b95a5879 fix encoding mistake - payload should be buffer-like 2014-06-26 14:26:58 -07:00
Ryan X. Charles 08a741d880 confirm peerId matches claimed pubkey to prevent MITM attacks 2014-06-26 13:58:45 -07:00
Ryan X. Charles 543c42a6a8 add authentication via new Message core class 2014-06-26 08:50:39 -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
Ryan X. Charles 8a89e687e1 bug: this -> self 2014-06-19 14:26:34 -07:00
Ryan X. Charles 8e81e9108f add private key in Wallet call to network start 2014-06-19 13:14:51 -07:00
Ryan X. Charles b9ecab9b92 remove commented-out references to obsolete netKey 2014-06-19 13:14:51 -07:00
Ryan X. Charles 98b864454f add some basic tests for WebRTC 2014-06-19 13:13:01 -07:00
Ryan X. Charles 8bba982978 make WebRTC tests work 2014-06-19 13:13:01 -07:00
Ryan X. Charles 31d601b2a6 initial work replacing symmetric shared secret with ECIES 2014-06-19 13:13:01 -07:00
Matias Alejo Garcia 61410e519a fix secure:false 2014-06-10 10:49:26 -03:00
Matias Alejo Garcia 33fc4f8623 ssl and video settings 2014-06-10 10:06:08 -03:00
Matias Alejo Garcia fcc1633816 rm log 2014-06-09 20:12:17 -03:00
Matias Alejo Garcia d0e20c1bff progressive reconnect time 2014-06-09 20:09:18 -03:00
Matias Alejo Garcia be7e122b0a rm variable reconnect time 2014-06-09 20:09:18 -03:00
Matias Alejo Garcia 0be63c2801 handle disconnect sent 2014-06-09 17:37:16 -03:00
Matias Alejo Garcia 521dd3efe5 simply a little webRTC error handling, add more messages 2014-06-09 11:34:09 -03:00
Yemel Jardi 9b5e155192 Add retry connection to peerjs server on login 2014-06-06 12:30:50 -03:00
Manuel Araoz 7798e38253 remove console.logs 2014-06-03 18:40:07 -03:00
Manuel Araoz 3934b750f2 polish reconnect 2014-06-03 11:54:21 -03:00
Manuel Araoz 7b2f227bcc work towards connection error 2014-06-02 18:59:50 -03:00
Yemel Jardi 406db01dd2 Support reconnection to old peerjs session 2014-05-22 19:28:26 -07:00
Yemel Jardi 715a5b2bba add friendly message when the wallet is full 2014-05-19 16:50:01 -07:00
Yemel Jardi 190185ac9c handle the PeerID-already-in-use error and display a friendly message 2014-05-15 17:17:44 -07:00
Manuel Araoz 0f1d651e36 unified connect calls 2014-05-09 15:39:33 -03:00
Manuel Araoz 1b87083579 disconnect working 2014-05-09 15:39:33 -03:00
Manuel Araoz 55ba5e6d37 connect working 2014-05-09 15:39:33 -03:00
Manuel Araoz 33e824a64c STUN/TURN in default config 2014-05-05 15:54:17 -03:00
Matias Alejo Garcia 7edb310517 add comment 2014-05-01 21:52:46 -03:00
Matias Alejo Garcia 65f12f611f better peer management 2014-05-01 21:48:17 -03:00
Matias Alejo Garcia bd501f854b add more peer checks 2014-05-01 16:40:25 -03:00
Matias Alejo Garcia 6cf8988eae fix "hello" for authenticated peers 2014-04-30 14:28:33 -03:00
Matias Alejo Garcia ab12832126 remove unused keyCache 2014-04-30 13:35:50 -03:00
Matias Alejo Garcia d3151cc88b same key for everyone 2014-04-30 13:02:40 -03:00
Matias Alejo Garcia 2dc59de87e add random key for network encryption 2014-04-30 12:58:40 -03:00
Matias Alejo Garcia 65698e7e45 add cache for keys 2014-04-30 11:04:33 -03:00
Matias Alejo Garcia 50d37aa22e implements authenticated encryption 2014-04-30 11:04:16 -03:00
Matias Alejo Garcia 830b6d2b5f removes encryption and signing. Relays on webrtc DTS. Keep authentication 2014-04-28 15:02:24 -03:00
Matias Alejo Garcia e46901c369 add update on network events to txproposals 2014-04-25 17:53:19 -03:00
Matias Alejo Garcia 751d86e785 symmetric encryption 2014-04-25 17:39:03 -03:00
Matias Alejo Garcia e88dc7afb3 peer checking againt by key ring 2014-04-24 23:43:05 -03:00
Manuel Araoz f5b8aa7c61 self video working 2014-04-24 18:47:59 -03:00