Commit Graph

457 Commits

Author SHA1 Message Date
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 d0c43f9bfb ALL test passing 2014-08-05 16:41:29 -03:00
Matias Alejo Garcia 25631e641a wallet test passings 2014-08-05 16:38:13 -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
Gustavo Maximiliano Cortez bb587d0743 Fix karma test and added a new one 2014-08-05 11:53:58 -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 c8d24cc420 Add mock method at FakeWallet 2014-08-05 10:21:29 -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
Gustavo Maximiliano Cortez 854196e72a Merge pull request #989 from yemel/feature/pre-created-address
Add a pre-generated address to the shared branch
2014-08-01 11:04:58 -03:00
Yemel Jardi 59a03c1f25 Change available balance to locked 2014-08-01 10:09:26 -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 4241bdac68 all test pass! 2014-07-29 13:33:54 -03:00
Matias Alejo Garcia cb8f719a99 all tests BUT hardcoded imports working 2014-07-29 13:10:36 -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
Gustavo Maximiliano Cortez 898e5a12ef Fixes: karma tests 2014-07-28 13:30:41 -03:00
Gustavo Maximiliano Cortez 85aa5842f1 Fix Conflicts:
.gitignore
	index.html
	js/controllers/backup.js
	js/controllers/sidebar.js
2014-07-28 12:28:07 -03:00
Matias Alejo Garcia 3aef6e156b add FORCED options to TxBuilder creation 2014-07-25 17:45:56 -03:00
Manuel Araoz e85431861e fix cases for incomplete transactions 2014-07-25 13:37:12 -03:00
Manuel Araoz 740256772e fix password tests 2014-07-25 12:34:31 -03:00
Manuel Araoz 4cab2d1929 fix new tests 2014-07-25 12:25:28 -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
Manuel Aráoz d7650f30ff Merge pull request #929 from matiu/feature/bitcore01
Updates model and tests to newest bitcore version
2014-07-25 12:23:36 -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
Manuel Araoz 08c2579272 fix test 2014-07-25 10:54:46 -03:00
Manuel Araoz 235920bd84 add failing test for mati to fix 2014-07-25 10:50:18 -03:00
Matias Alejo Garcia b5e307c3d3 update format 2014-07-24 21:19:54 -03:00
Matias Alejo Garcia 2d481dd406 updates model and tests to newest bitcore version 2014-07-24 21:18:38 -03:00
Yemel Jardi cff8dcb41b Show addresses for other copayers 2014-07-22 16:13:11 -03:00
Gustavo Maximiliano Cortez b17bc2310d test for new angular directive: match password inputs 2014-07-18 18:18:05 -03:00
Gustavo Maximiliano Cortez 91c7ab100d Fixes karma tests 2014-07-16 19:00:34 -03:00
Yemel Jardi 3ebf88f6aa Improve indexDiscovery tests performance 2014-07-10 16:19:09 -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
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 7a072e83d9 . 2014-07-08 20:05:41 -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 937369d0c7 Merge pull request #870 from matiu/bug/handlerNetErrors
Bug/handler net errors
2014-07-08 15:59:40 -03:00
Yemel Jardi 4303b0beab Add tests 2014-07-08 15:54:10 -03:00
Yemel Jardi e6a9a443cc Update tests 2014-07-08 15:54:10 -03:00
Matias Alejo Garcia b0ff5494e0 Merge pull request #865 from maraoz/feature/force-testnet
Feature: allow to force network from config
2014-07-08 15:35:31 -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 5d63741f35 Merge pull request #862 from yemel/fix/address-list
Fix showing QR code on address list when it shouldn't
2014-07-08 15:05:55 -03:00
Manuel Araoz 00cf32fc8d add forceNetwork parameter and test it 2014-07-08 12:34:49 -03:00
Yemel Jardi cef5b72557 Fix showing QR code on address list when it shouldn't 2014-07-08 12:23:10 -03:00
Matias Alejo Garcia 50a29909ba remove test 2014-07-08 12:02:20 -03:00
Matias Alejo Garcia 360ccd724d change settings tab name 2014-07-08 10:48:56 -03:00
Matias Alejo Garcia 141e8bddd3 fixes txproposal notifications 2014-07-08 08:58:24 -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 b9b09d5f11 add stub to _request 2014-07-07 19:33:59 -03:00
Gustavo Cortez c00deb25f9 Fix tests 2014-07-07 19:12:34 -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 f497d76405 Merge pull request #816 from yemel/feature/bipNNN-refactor
Feature/bip nnn refactor
2014-07-07 15:55:13 -03:00
Ryan X. Charles b775220209 update to bitcore v0.1.25
...to fix an error where the scriptForAddress function no longer exists.
2014-07-07 10:35:06 -07:00
Gustavo Cortez 7cdf559fd7 Fixes typos: Matias's suggestions. Added more tests 2014-07-07 10:58:43 -03:00
Yemel Jardi 13cf5e4216 change import to fix index.html tests 2014-07-07 10:32:19 -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 Araoz a30b8d81bb fix tests 2014-07-04 12:51:27 -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 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
Matias Alejo Garcia 008199f4c0 Merge pull request #809 from maraoz/ui/settings-tab
change backup to settings tab
2014-07-03 16:16:20 -03:00
Manuel Araoz 4fdc5c4b51 add Structure test 2014-07-03 13:13:45 -03:00
Manuel Araoz 8acaca75fb autocomplete send form after uri handled 2014-07-03 11:13:59 -03:00
Manuel Araoz 8b25b5932f add tests and fix some minor issues 2014-07-03 11:13:59 -03:00
Manuel Araoz 16293b035d add tests 2014-07-03 11:13:59 -03:00
Manuel Araoz 30a259aeb8 fix test 2014-07-03 10:51:27 -03:00
Gustavo Cortez 4ff9295e27 increased tests coverage 2014-07-02 16:55:41 -03:00
Gustavo Cortez 392fb8586b Fix tests and increase coverage of them 2014-07-02 10:44:20 -03:00
Manuel Araoz 87e1dddde9 fix version notification test 2014-06-27 15:42:38 -03:00
Gustavo Cortez f669f383e2 Fixed karma test (rounded values) 2014-06-27 09:53:18 -03:00
Gustavo Cortez 75b45d2f17 Fixed amount values: decimal is variable, depending of unit in config. Also custom values are allowed 2014-06-27 02:46:28 -03:00
Gustavo Cortez bc5c473752 Fix conflicts:
index.html
2014-06-27 00:04:25 -03:00
Matias Alejo Garcia 16541f413e Merge pull request #773 from maraoz/ui/unify-notifications
Unify notification systems
2014-06-26 23:27:56 -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 4467ae270f Merge pull request #759 from cmgustavo/bug/01-amount-input
Bug/01 amount input
2014-06-26 22:47:56 -03:00
Ryan X. Charles ed0ced1971 Merge pull request #760 from yemel/fix/test-changes
improve performance at rounding error tests
2014-06-26 15:18:00 -07:00
Manuel Araoz 5e12523338 fix signin and add tests 2014-06-26 19:00:04 -03:00
Manuel Araoz 8d3d35ff83 fix setup, add test 2014-06-26 18:59:35 -03:00
Manuel Araoz 4c5d3883e1 fix import and send, and add test 2014-06-26 18:57:03 -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 Cortez f94292e49d Test for the new filter 2014-06-26 16:38:09 -03: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
Yemel Jardi 80499af194 fix error and improve performance 2014-06-26 11:16:54 -03:00
Manuel Araoz 380503f97f add tests 2014-06-26 10:16:28 -03:00
Yemel Jardi a5a30c3ba5 Add wallet factory tests 2014-06-26 10:08:40 -03:00
Gustavo Maximiliano Cortez a1fe7b3d7d Merge pull request #754 from ryanxcharles/bug/fix-insight-mocha-browser
fix exception in insight mocha browser tests
2014-06-26 09:58:27 -03:00
Gustavo Cortez e330da0b9b Fixed test and new test entry for new method 2014-06-25 19:11:50 -03:00
Gustavo Cortez c669fc2d17 More tests for amounts validation 2014-06-25 17:10:00 -03:00
Yemel Jardi db59a1bd36 reduce the chance of a test failure 2014-06-25 16:17:34 -03:00
Yemel Jardi 96cbf8ad7b Add feedback while importing wallet 2014-06-25 15:58:55 -03:00
Ryan X. Charles 537755e888 fix exception in insight mocha browser tests
The Insight tests were actually broken and not running due to trying to access
the nonexistent process variable. The proper way to check for this is to see if
its type is undefined before trying to access it.
2014-06-25 10:03:58 -07:00
Yemel Jardi e95bb8e580 performance improvement 2014-06-25 13:06:25 -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
Gustavo Maximiliano Cortez 8a8614fe5b Merge pull request #742 from yemel/feature/better-off-alone
Review copay features for 1-of-1
2014-06-25 11:34:51 -03:00
Yemel Jardi ccabcc3740 Remove update function 2014-06-25 11:28:40 -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
Matias Alejo Garcia 88e6ea9f40 Merge pull request #748 from ryanxcharles/feature/speed-up-wallet-tests
speed up wallet tests by three times
2014-06-25 10:09:58 -03:00
Yemel Jardi 139f6f8e18 Merge pull request #739 from maraoz/optimize/redeemscriptmap
optimize redeemscript map generation
2014-06-25 09:58:25 -03:00
Ryan X. Charles fe25fa3ad8 speed up wallet tests by caching wallet creation 2014-06-24 17:48:05 -07:00
Ryan X. Charles cce602b4fb remove console.log in test 2014-06-24 15:51:42 -07:00
Manuel Araoz 7629ebe5d7 add tests for Structurewq 2014-06-24 17:08:53 -03:00
Manuel Araoz 326384cd4b optimize redeemscript map generation 2014-06-24 17:08:53 -03:00
Yemel Jardi 7d8d89ab38 Review copay features for 1-of-1 2014-06-24 15:54:10 -03:00
Matias Alejo Garcia 6b7b00769d add tests 2014-06-24 13:18:13 -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
Gustavo Maximiliano Cortez da445e7c69 Merge pull request #730 from yemel/fix/new-address-on-payment
Change default address list
2014-06-24 12:00:12 -03:00
Yemel Jardi f1faa96510 Add filter test 2014-06-24 11:41:22 -03:00
Ryan X. Charles b64449ae09 Merge pull request #721 from maraoz/feature/autotop-send
send all available balance button
2014-06-24 07:34:06 -07:00
Ryan X. Charles e0ed8044a7 Merge pull request #734 from cmgustavo/feature/wallet-creation
Feature/wallet creation
2014-06-24 07:19:59 -07:00
Gustavo Maximiliano Cortez 621dcc1d09 Merge pull request #733 from yemel/feature/display-address-label
Add directive to render address from the book with a tooltip
2014-06-24 10:53:40 -03:00
Ryan X. Charles 8657e39dd7 wrap getNumber test in another describe 2014-06-23 16:31:17 -07:00
Gustavo Cortez ac83477a88 Test for getNumber function. 2014-06-23 19:45:04 -03: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 099a282fb9 Add directive to render address from the book with a tooltip 2014-06-23 17:34:54 -03:00
Manuel Araoz 83ecbcee2b add test 2014-06-23 15:12:18 -03:00
Manuel Araoz e09b1e4fdc trying to fix tests 2014-06-23 15:06:12 -03:00
Yemel Jardi 970a6f3d37 Add tests for block events at Socket service 2014-06-23 15:05:06 -03:00
Yemel Jardi 26c829f6de Add validation and tests for spendUnconfirmed = false 2014-06-23 14:58:11 -03:00
Manuel Araoz 3ce3af4408 fix merge with master 2014-06-23 11:24:08 -03:00
Manuel Araoz 6252047cd3 fix tests 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 542f6d5cea add preconditions and tests 2014-06-23 11:23:48 -03:00
Manuel Aráoz 4d6e9f8a6d Merge pull request #677 from ryanxcharles/feature/ECIES
ECIES
2014-06-23 11:22:22 -03:00
Manuel Araoz 1f9e1a5f39 fix tests 2014-06-23 09:53:53 -03:00