Commit Graph

550 Commits

Author SHA1 Message Date
Matias Alejo Garcia afde77e575 fix last transaction retrieval 2014-08-06 15:30:47 -03:00
Matias Alejo Garcia 91a05a896e rm removeRepeated fn 2014-08-05 17:18:02 -03:00
Matias Alejo Garcia 260adc8587 fix tests 2014-08-05 16:42:51 -03:00
Matias Alejo Garcia 5a2dfe690d add rebroadcast test 2014-08-05 16:41:29 -03:00
Matias Alejo Garcia 91829f8410 remove sender sig check 2014-08-05 16:41:29 -03:00
Matias Alejo Garcia 36fcd6882f add more tests to wallet 2014-08-05 16:41:29 -03:00
Matias Alejo Garcia 768dfefe3a wallet working again 2014-08-05 16:41:29 -03:00
Matias Alejo Garcia 4cf152999a add seenBy on creator 2014-08-05 16:41:29 -03:00
Matias Alejo Garcia f5f9848ff1 all test passing! 2014-08-05 16:41:29 -03:00
Matias Alejo Garcia 753b890658 txp* test passing 2014-08-05 16:41:29 -03:00
Matias Alejo Garcia 966818c53a add different toObj/fromObj fn for networking 2014-08-05 16:41:29 -03:00
Matias Alejo Garcia c8917fccd6 karma + mocha browser passing also 2014-08-05 16:41:29 -03:00
Matias Alejo Garcia d0c43f9bfb ALL test passing 2014-08-05 16:41:29 -03:00
Matias Alejo Garcia dc3bbb8859 wallet test passings 2014-08-05 16:38:13 -03:00
Matias Alejo Garcia 5d2b50f77f test in Txproposals working again 2014-08-05 16:38:13 -03:00
Matias Alejo Garcia 42c73f9a01 rewrite from scratch tests for TxProposalSet 2014-08-05 16:38:13 -03:00
Matias Alejo Garcia ae042a8292 TxProposal fully testes 2014-08-05 16:38:13 -03:00
Matias Alejo Garcia 2fe421b14f tests for txProposal 1 2014-08-05 16:38:13 -03:00
Matias Alejo Garcia 0e211426d7 tests for txProposal 2014-08-05 16:38:13 -03:00
Matias Alejo Garcia 05aefc17a5 tests for txProposal 2014-08-05 16:38:13 -03:00
Matias Alejo Garcia 72e1dfc114 WIP 2014-08-05 16:38:13 -03:00
Matias Alejo Garcia 6e5f06693d separate TxProposal to a different class. new tests 2014-08-05 16:38:13 -03:00
Matias Alejo Garcia 96a5f0aeb8 add forPath and tests 2014-08-05 16:38:13 -03:00
Matias Alejo Garcia a10e6f4908 add getForPath with tests 2014-08-05 16:38:13 -03:00
Matias Alejo Garcia 4e6d572de0 add cache to pubkeyring test. Speedup 2x 2014-08-05 16:38:13 -03:00
Matias Alejo Garcia c19eac6a4e WIP 2014-08-05 16:38:13 -03:00
Matias Alejo Garcia df357e4ea7 add metadata checks 2014-08-05 16:38:13 -03:00
Gustavo Maximiliano Cortez a5544d08db Merge pull request #1040 from yemel/feature/improve-1-of-1
Remove Name field and copayer list on 1-of-1 wallets
2014-08-05 10:29:46 -03:00
Yemel Jardi 523a48b056 Remove Name field and copayer list on 1-of-1 wallets 2014-08-04 16:27:58 -03:00
Yemel Jardi 9b1708b88e Save last opened wallet 2014-08-04 15:10:01 -03:00
Yemel Jardi fdabdc64fe Add a pre-generated address to the shared branch 2014-07-31 16:13:27 -03:00
Matias Alejo Garcia ba31e6a628 renames inside HDParams 2014-07-29 14:11:11 -03:00
Matias Alejo Garcia 578d05e638 all tests BUT hardcoded imports working 2014-07-29 13:09:47 -03:00
Matias Alejo Garcia 0ee93403f3 change names to HD and fix HD* tests 2014-07-29 11:23:58 -03:00
Matias Alejo Garcia 1a40e29fd2 remove unrequired soop 2014-07-29 10:21:44 -03:00
Matias Alejo Garcia 19b9fcd0b1 change to camelCase 2014-07-29 10:14:43 -03:00
Matias Alejo Garcia 1d5238b2b8 change to camelCase 2014-07-29 10:14:15 -03:00
Manuel Aráoz 811dc6dd3b Merge pull request #952 from matiu/feature/txproposal01
Feature/txproposal01
2014-07-25 18:05:02 -03:00
Matias Alejo Garcia ceada149d7 fix tests 2014-07-25 17:48:35 -03:00
Matias Alejo Garcia 3aef6e156b add FORCED options to TxBuilder creation 2014-07-25 17:45:56 -03:00
Matias Alejo Garcia 560702df58 Merge pull request #936 from yemel/feature/android-cordova
Android - Migration to Cordova + Crosswalk Framework
2014-07-25 16:40:13 -03:00
Manuel Araoz e85431861e fix cases for incomplete transactions 2014-07-25 13:37:12 -03:00
Manuel Araoz 76e0d8f5ef add validation for actual tx SIGHASH_TYPE 2014-07-25 12:25:28 -03:00
Manuel Araoz b5c144d48c complete validation tests for txProposal SIGHASH 2014-07-25 12:25:27 -03:00
Matias Alejo Garcia bb5ba1a209 rm log 2014-07-25 12:15:00 -03:00
Matias Alejo Garcia 2008db932b add buildermockv0 to show old / obsolete tx proposals 2014-07-25 11:59:13 -03:00
Yemel Jardi 19f57e614c Add native QR scanner to send form 2014-07-25 11:30:54 -03:00
Matias Alejo Garcia 7f11793b96 less strict import check for TXP v0 2014-07-25 11:13:48 -03:00
Matias Alejo Garcia ae08d5611a fix test / id name 2014-07-25 11:05:10 -03:00
Matias Alejo Garcia 5eb8164df2 skip incompatible transaction proposals from backups 2014-07-25 10:39:41 -03:00
Matias Alejo Garcia b788c76d91 rm log 2014-07-25 07:53:29 -03:00
Matias Alejo Garcia 23ba3e6ebf updates version and use latest bitcore params 2014-07-25 07:53:02 -03:00
Matias Alejo Garcia 813c498d1f fix typo 2014-07-24 21:59:44 -03:00
Matias Alejo Garcia 2d481dd406 updates model and tests to newest bitcore version 2014-07-24 21:18:38 -03:00
Ryan X. Charles 643cad3a39 change encryption to work on hex strings
..instead of binary, to work around an issue with bitcore/sjcl. I'm not sure
what the issue is exactly, except that encryption of binary data isn't working
correctly due to some kind of string stuff involving decodeURIComponent inside
sjcl. I haven't fully figured it out. For now I am changing the network
protocol to hex to workaround the issue.

See this: https://github.com/bitpay/bitcore/pull/416
2014-07-09 01:13:42 -07: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 27e27af7ab Merge pull request #872 from cmgustavo/bug/01-config-storage
Fixes: save config in localStorage
2014-07-08 21:00:03 -03:00
Gustavo Maximiliano Cortez d91c42ee30 Merge pull request #873 from matiu/feature/test01
Feature/test01
2014-07-08 20:13:23 -03:00
Matias Alejo Garcia 248c18596c more tests 2014-07-08 19:52:47 -03:00
Gustavo Maximiliano Cortez 5d5bf3dfc5 Merge pull request #849 from yemel/feature/backup-wallet
Wallet Backups
2014-07-08 19:17:43 -03:00
Matias Alejo Garcia fb2b6c40ba add tests to localencrypted 2014-07-08 19:11:48 -03:00
Gustavo Maximiliano Cortez 4d160a4ee7 Fixes:
* Save config in localStorage
* Show forced networkName in settings Page
2014-07-08 18:53:02 -03:00
Gustavo Maximiliano Cortez 937369d0c7 Merge pull request #870 from matiu/bug/handlerNetErrors
Bug/handler net errors
2014-07-08 15:59:40 -03:00
Yemel Jardi e6a9a443cc Update tests 2014-07-08 15:54:10 -03:00
Yemel Jardi c145290167 Add full backup stage with user feedback 2014-07-08 15:53:34 -03:00
Yemel Jardi 49ac6dfcf4 Hold on backup page until all copayers made a full backup 2014-07-08 15:53:34 -03: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
Manuel Araoz 00cf32fc8d add forceNetwork parameter and test it 2014-07-08 12:34:49 -03:00
Gustavo Maximiliano Cortez 6ea9831913 Merge pull request #851 from matiu/bug/undefined3
fix undefined bugs
2014-07-07 20:44:59 -03:00
Gustavo Maximiliano Cortez 6e442cd902 Merge pull request #847 from matiu/bug/handleInsightErrors
handle empty Insight responses
2014-07-07 20:26:12 -03:00
Gustavo Cortez 14cea0362f Fixes and re-factory 2014-07-07 20:01:50 -03:00
Matias Alejo Garcia d099db6cde fix undefined bugs 2014-07-07 19:39:44 -03:00
Matias Alejo Garcia 1cb10219e9 more handles 2014-07-07 18:46:12 -03:00
Gustavo Cortez a1e5246727 updated 2014-07-07 18:13:26 -03:00
Matias Alejo Garcia d192cc5270 handle empty Insight responsed 2014-07-07 18:12:58 -03:00
Gustavo Cortez 0931024e23 Fixes: verify addressbook method 2014-07-07 17:38:17 -03:00
Matias Alejo Garcia e180e53e73 add SIN and video 2014-07-07 17:00:26 -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
Matias Alejo Garcia f497d76405 Merge pull request #816 from yemel/feature/bipNNN-refactor
Feature/bip nnn refactor
2014-07-07 15:55:13 -03:00
Gustavo Cortez ac2eda3670 Fixes typos and re-factory throw errors 2014-07-07 14:53:34 -03:00
Yemel Jardi d0693442ce Remove magic number fixes #736 2014-07-07 12:27:05 -03:00
Yemel Jardi e22eed8610 Fix double wallet store on open/create/join 2014-07-07 12:17:36 -03:00
Yemel Jardi f8ea3a4090 Derive token from cid, bring back the custom version of peerjs 2014-07-07 11:29:28 -03:00
Gustavo Cortez 7cdf559fd7 Fixes typos: Matias's suggestions. Added more tests 2014-07-07 10:58:43 -03:00
Matias Alejo Garcia 44ef1c4710 Merge pull request #818 from maraoz/bug/addresses-check-network
check network for addresses

* Chrome 35.0.1916 (Mac OS X 10.9.3): Executed 76 of 76 SUCCESS (0.806 secs / 0.239 secs)
* mocha:   170 passing (8s)
* browser: 100%: 128.16s


Code: OK (I am starting to like preconditions 👍 )
2014-07-07 09:45:23 -03:00
Gustavo Cortez c83e0c73da Delete entry with a wrong signature 2014-07-07 01:57:25 -03:00
Gustavo Cortez 313fcd4808 Added creator's signature to address book entry. Re-factory somethings and improve the merge of them 2014-07-07 01:33:39 -03:00
Manuel Aráoz 0f28f607d8 Merge pull request #813 from matiu/feature/minor-ux-changes
add testnet in footer / add links
2014-07-04 14:25:25 -03:00
Manuel Araoz a30b8d81bb fix tests 2014-07-04 12:51:27 -03:00
Manuel Araoz 90ebd8deb5 add check to core, not only UI 2014-07-04 11:40:07 -03:00
Yemel Jardi 7562c3f9e7 Add some test and refactor getCosigner 2014-07-04 09:45:02 -03:00
Yemel Jardi 2abc35ae57 Add update indexes and support old indexes schema 2014-07-03 16:42:29 -03:00
Yemel Jardi fd2cf54eb4 Hide empty addresses from othe copayers 2014-07-03 16:42:29 -03:00
Yemel Jardi 04b6aa4003 PublicKeyRing handles one index for each cosigner 2014-07-03 16:42:29 -03:00
Yemel Jardi b02cb17989 Create indexes for all copayers 2014-07-03 16:42:29 -03:00
Yemel Jardi e9f20b5de6 Change PublicKeyRing index to array of AddressIndex 2014-07-03 16:42:29 -03:00
Yemel Jardi 2e56a782bd Add cosigner index to AddressIndex 2014-07-03 16:42:29 -03:00
Manuel Araoz 1b780d268b get URI parsing into copay core 2014-07-03 12:52:28 -03:00
Matias Alejo Garcia 5ba388e911 add testnet in footer / add links 2014-07-03 11:37:26 -03:00
Gustavo Cortez f6709c4000 Fixes: catch error message when importing wallet from different network 2014-07-02 10:43:00 -03:00
Manuel Araoz 32a7190a80 remove authoritativeness for txp metadata 2014-06-27 13:03:24 -03:00
Gustavo Maximiliano Cortez 1af298b5f1 Merge pull request #772 from matiu/feature/defaultsToSSLandLivenet
SSL and livenet config by default
2014-06-27 09:55:26 -03:00
Matias Alejo Garcia 7693b27e90 rm console.log 2014-06-27 09:42:18 -03:00
Matias Alejo Garcia c16531dfb7 Merge pull request #768 from ryanxcharles/feature/authentication
Authentication
2014-06-26 23:12:46 -03:00
Matias Alejo Garcia d4805b925d SSL and livenet config by default 2014-06-26 18:47:27 -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
Gustavo Maximiliano Cortez dff3c9c479 Merge pull request #755 from yemel/feature/importing-feedback
Add feedback while importing wallet
2014-06-26 15:51:28 -03:00
Ryan X. Charles 543c42a6a8 add authentication via new Message core class 2014-06-26 08:50:39 -07:00
Manuel Araoz 1639b796cf intermediate screen backup 2014-06-26 10:16:28 -03:00
Yemel Jardi 96cbf8ad7b Add feedback while importing wallet 2014-06-25 15:58:55 -03:00
Gustavo Maximiliano Cortez 7e3477d03f Merge pull request #752 from matiu/bug/balance-update
fix address event subscription
2014-06-25 11:45:30 -03:00
Matias Alejo Garcia 792f48b2ea fix address event subscription 2014-06-25 11:12:38 -03:00
Manuel Araoz 2bf8ac912f add preconditions to Structure.js 2014-06-25 11:10:11 -03:00
Manuel Araoz 326384cd4b optimize redeemscript map generation 2014-06-24 17:08:53 -03:00
Matias Alejo Garcia f1257d054c fix conflicts 2014-06-24 13:02:25 -03:00
Matias Alejo Garcia 1abf1dc90d small refactor on rootScope 2014-06-24 12:57:15 -03: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 0d54875bf2 Merge pull request #712 from maraoz/txp/protocol/security2
Improve tx proposal protocol security
2014-06-23 15:18:56 -07:00
Yemel Jardi 26c829f6de Add validation and tests for spendUnconfirmed = false 2014-06-23 14:58:11 -03:00
Manuel Araoz f4a5202a99 add seenBy fix 2014-06-23 11:23:48 -03:00
Manuel Araoz cf159241a9 working towards fixing tests with new rules 2014-06-23 11:23:48 -03:00
Manuel Araoz 781adacbef fix dependency management 2014-06-23 11:23:19 -03:00
Manuel Aráoz 4d6e9f8a6d Merge pull request #677 from ryanxcharles/feature/ECIES
ECIES
2014-06-23 11:22:22 -03:00
Ryan X. Charles 8a89e687e1 bug: this -> self 2014-06-19 14:26:34 -07:00
Matias Alejo Garcia 78493f9d91 Merge pull request #720 from yemel/fix/wallet-import
Fix error message on wallet import (wrong password)
2014-06-19 17:22:01 -03:00
Ryan X. Charles 7ae6438478 add tests for Wallet 2014-06-19 13:15:41 -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 1dc420b215 Merge pull request #697 from cmgustavo/feature/addressbook
Addressbook
2014-06-19 17:03:18 -03:00
Gustavo Cortez 47dcc12910 Fix Conflicts:
js/models/core/Wallet.js
2014-06-19 16:43:34 -03:00
Matias Alejo Garcia 44901cd635 fix conflics 2014-06-19 16:34:37 -03:00
Yemel Jardi 06c1640d99 fix wallet import error message 2014-06-19 16:07:51 -03:00
Manuel Araoz e09d8e11d4 optimize txp protocol 2014-06-19 15:57:38 -03:00
Manuel Araoz b7af51ceee all tests passing 2014-06-19 15:57:38 -03:00
Manuel Araoz 889edf4b92 add preconditions and tests 2014-06-19 15:57:38 -03:00
Manuel Araoz 1457764930 change 'k' for 'ntxid' 2014-06-19 15:56:35 -03:00
Manuel Araoz d8e564b031 remove old methods 2014-06-19 15:56:35 -03:00
Manuel Araoz 03b4d16473 following the single TxProposal changes 2014-06-19 15:56:35 -03:00
Manuel Araoz 27de2896d8 working on refactor 2014-06-19 15:56:34 -03:00
Manuel Araoz 7001e21c71 ocha 2014-06-19 15:56:34 -03:00
Manuel Araoz b791d58c6c refactors 2014-06-19 15:56:34 -03:00
Manuel Araoz e0db6cac28 fix dependency management 2014-06-19 15:56:34 -03:00
Yemel Jardi 386a5bea6f move update indexes to the loading screen 2014-06-19 11:35:38 -03:00
Matias Alejo Garcia 8b5e616668 add tests for node 2014-06-19 00:33:27 -03:00