Commit Graph

256 Commits

Author SHA1 Message Date
Matias Alejo Garcia e12b6b8158 add access levels to import / export 2015-02-21 22:53:00 -03:00
Matias Alejo Garcia 8b89c08237 add tests 2015-02-21 20:34:44 -03:00
Matias Alejo Garcia 7dba50faad ro-rw working! 2015-02-21 20:20:58 -03:00
Matias Alejo Garcia 56f5a58419 WIP ro-rw 2015-02-21 19:29:42 -03:00
Ivan Socolsky 9da16decfa change notification tests to resist varying nb of address creation 2015-02-21 13:17:43 -03:00
Ivan Socolsky b774c999cd remove comments 2015-02-21 13:09:06 -03:00
Ivan Socolsky efa706e68c fix signatures 2015-02-21 12:53:02 -03:00
Ivan Socolsky 5af3ec8839 fix signatures for same address utxos 2015-02-21 11:31:15 -03:00
Ivan Socolsky e7aa060e15 refactor block explorer stubbing 2015-02-21 09:49:43 -03:00
Ivan Socolsky 9cda811691 Merge pull request #54 from matiu/ref/naming
rm CopayServer
2015-02-20 19:00:43 -03:00
Matias Alejo Garcia 1e10c751e9 rm CopayServer 2015-02-20 17:32:19 -03:00
Matias Alejo Garcia a85fe27987 Merge pull request #51 from isocolsky/ref/actions
Ref/actions
2015-02-20 15:27:35 -03:00
Matias Alejo Garcia 612123b3e8 more timeout to travis 2015-02-20 15:24:49 -03:00
Ivan Socolsky 266db38fa4 if decrypted, txp.message contains cleartext and txp.encryptedMessage contains cyphertext 2015-02-20 15:23:40 -03:00
Ivan Socolsky 5a3b754ea1 encrypt/decrypt rejection comment 2015-02-20 15:23:40 -03:00
Ivan Socolsky c8c185ec2e test rejection comment is not sent in clear text to the server 2015-02-20 15:23:40 -03:00
Ivan Socolsky 619db55e6c refactor actions as array 2015-02-20 15:23:40 -03:00
Matias Alejo Garcia e8dce5adfd update json 2015-02-20 13:53:49 -03:00
Matias Alejo Garcia 5804ca4456 add fake tx proposal tests 2015-02-20 13:53:49 -03:00
Matias Alejo Garcia 59f562a6eb add fake address tests 2015-02-20 13:53:49 -03:00
Ivan Socolsky 675369eed0 move parseAmount to CLI only 2015-02-19 21:37:13 -03:00
Matias Alejo Garcia c0615d7ac7 lock and release tests 2015-02-19 20:19:01 -03:00
Matias Alejo Garcia 71d01e279f return correct errors to client 2015-02-19 20:04:05 -03:00
Matias Alejo Garcia f13c95be6b add multiple sign / reject tests 2015-02-19 18:47:17 -03:00
Matias Alejo Garcia 36ed3682be sendTx sign reject tests 2015-02-19 18:11:57 -03:00
Matias Alejo Garcia f3a152ca30 send TX tests 2015-02-19 17:47:51 -03:00
Matias Alejo Garcia ce8aeee3a9 add api tests 2015-02-19 17:39:04 -03:00
Matias Alejo Garcia 83f59ddfbb rm express client 2015-02-19 17:39:04 -03:00
Matias Alejo Garcia dc446c5f2b api tests working 2015-02-19 17:39:04 -03:00
Matias Alejo Garcia a6b797c092 WIP, supertest testing 2015-02-19 17:39:04 -03:00
Ivan Socolsky 8dd523fec8 various fixes 2015-02-19 16:21:50 -03:00
Ivan Socolsky 8ca3b65fad derive signingPubKey from correct xPub 2015-02-19 10:49:31 -03:00
Ivan Socolsky cdbbbec640 use sha256 to generate copayerId from xPub 2015-02-19 10:17:28 -03:00
Ivan Socolsky 33800aff7e fix message encryption/decryption 2015-02-18 18:14:24 -03:00
Matias Alejo Garcia 2d70a54c6f fix tests and amount 2015-02-18 16:47:15 -03:00
Matias Alejo Garcia 93b3e1db86 add inputs as strings to force fail 2015-02-18 16:05:10 -03:00
Matias Alejo Garcia b9538e6486 add test to getTxProposal 2015-02-18 16:05:10 -03:00
Matias Alejo Garcia 640be90270 add test to getTxProposal API 2015-02-18 16:05:09 -03:00
Ivan Socolsky dac04f3db7 parse amount on client API sendTxProposal 2015-02-18 15:55:16 -03:00
Ivan Socolsky c23f962030 check precision is consistent with unit 2015-02-18 15:46:55 -03:00
Ivan Socolsky a5a672b473 add parseAmount method 2015-02-18 15:46:55 -03:00
Ivan Socolsky 58d46c0ad5 encrypt/decrypt proposal message in client api 2015-02-18 13:08:07 -03:00
Ivan Socolsky 78033f7c97 add encrypt/decrypt methods 2015-02-18 13:05:57 -03:00
Matias Alejo Garcia 15e50b6946 add tests 2015-02-18 11:54:57 -03:00
Ivan Socolsky 52f6529952 refactor remaining objects 2015-02-17 21:20:08 -03:00
Ivan Socolsky 53be45ac4c refactor copayer construction 2015-02-17 20:26:58 -03:00
Matias Alejo Garcia 4db7a80775 add tests 2015-02-17 18:04:13 -03:00
Matias Alejo Garcia c6f61ae0da copayerId from pubkey 2015-02-17 17:38:43 -03:00
Ivan Socolsky bea3cf7a65 merge SignUtils into WalletUtils 2015-02-17 16:42:47 -03:00
Ivan Socolsky 5161d96dd6 rename BitcoinUtils -> WalletUtils 2015-02-17 13:11:14 -03:00
Ivan Socolsky b1a29f5005 check header & change address 2015-02-17 12:39:11 -03:00
Ivan Socolsky 9665f23bc5 add proposal check on sign 2015-02-17 11:58:57 -03:00
Matias Alejo Garcia 03adc38897 add tests, refactor checks 2015-02-17 11:48:19 -03:00
Matias Alejo Garcia 196ae2a448 add test 2015-02-17 10:49:03 -03:00
Matias Alejo Garcia 2121565070 async storage 2015-02-16 20:32:35 -03:00
Matias Alejo Garcia 673ba2823b working after refactor 2015-02-16 19:58:17 -03:00
Matias Alejo Garcia cdb8ab94da fix spelling 2015-02-16 16:29:18 -03:00
Matias Alejo Garcia f8b86842a6 add missing files 2015-02-16 16:29:18 -03:00
Matias Alejo Garcia 85b1bc08b2 adds tests to clientAPI and verified 2015-02-16 16:29:18 -03:00
Ivan Socolsky 8cf28b2200 test for dust amount 2015-02-16 14:41:12 -03:00
Ivan Socolsky 787a3376be test minimum fee 2015-02-16 14:27:01 -03:00
Ivan Socolsky 15b79bfd79 cleaner code 2015-02-15 16:50:50 -03:00
Ivan Socolsky 528634d0a1 remove redundant test 2015-02-15 16:17:37 -03:00
Ivan Socolsky 9020c70dd2 test acceptance flow 2015-02-15 16:15:45 -03:00
Ivan Socolsky bcdd807395 test rejection flow 2015-02-15 15:46:29 -03:00
Ivan Socolsky eba565661c fix integration tests 2015-02-15 13:08:34 -03:00
Matias Alejo Garcia 5953dc8f1d fix getRawTx 2015-02-13 21:16:18 -03:00
Matias Alejo Garcia a04cded8b9 refactor _checkSignatures 2015-02-13 21:00:12 -03:00
Ivan Socolsky 8de10975cf add copayer name to txp 2015-02-13 18:27:35 -03:00
Ivan Socolsky 53bb2567d6 always check proposal signature 2015-02-13 16:57:28 -03:00
Ivan Socolsky 18252b2cae simplify createAndJoinWallet helper 2015-02-13 00:51:04 -03:00
Ivan Socolsky 6ca443bf58 improvements 2015-02-13 00:00:54 -03:00
Ivan Socolsky 50c217c994 fix tests 2015-02-12 17:15:48 -03:00
Ivan Socolsky 9cadcfe7f6 Merge pull request #2 from matiu/feat/notifications2
Feat/notifications
2015-02-12 11:47:34 -03:00
Matias Alejo Garcia 8945b59fd4 add server to check ts is in epoch 2015-02-12 11:41:14 -03:00
Matias Alejo Garcia 0d36c3481b check also emits 2015-02-12 10:57:10 -03:00
Matias Alejo Garcia 5757ec5e06 more tests for notifications 2015-02-12 10:26:13 -03:00
Matias Alejo Garcia d548639334 test passing with notifications 2015-02-11 23:11:30 -03:00
Ivan Socolsky 6b1803fe9d Merge pull request #1 from matiu/feat/add-tests2
add tests
2015-02-11 16:25:25 -03:00
Matias Alejo Garcia d7357c53ea add tests 2015-02-11 13:44:04 -03:00
Ivan Socolsky 86b51f6501 simplify utxo creation 2015-02-11 12:09:12 -03:00
Ivan Socolsky 15798be382 improve error messages 2015-02-11 12:05:21 -03:00
Matias Alejo Garcia f8702ebcce rm pending Tx 2015-02-10 18:51:06 -03:00
Matias Alejo Garcia 324c058303 add test to reject 2015-02-10 18:50:57 -03:00
Ivan Socolsky b2b70f7356 simplify proposal creation 2015-02-10 16:15:05 -03:00
Matias Alejo Garcia ebc7e2e885 Merge pull request #23 from isocolsky/ref/createTx
WIP Added signature to tx proposal creation
2015-02-10 14:58:29 -03:00
Ivan Socolsky 6689c1347f add testdata 2015-02-10 13:20:41 -03:00
Ivan Socolsky cde30c6b9d add proposalSignature to txp 2015-02-10 10:22:33 -03:00
Ivan Socolsky 7df19fe754 Merge pull request #22 from matiu/feat/delete-wallet
Feat/delete wallet
2015-02-09 18:27:45 -03:00
Matias Alejo Garcia b19d12157a delete wallet working 2015-02-09 18:07:15 -03:00
Ivan Socolsky a78de0195b check required arguments without throwing exceptions 2015-02-09 17:29:22 -03:00
Ivan Socolsky 674e3a5b77 fix required rejections 2015-02-09 12:30:42 -03:00
Ivan Socolsky 8e105d731a check wallet status using #isComplete() 2015-02-09 10:16:56 -03:00
Ivan Socolsky 240b3322b0 made address and wallet storage atomic 2015-02-08 20:46:02 -03:00
Ivan Socolsky 07332a1561 test valid toAddress on createTx 2015-02-08 20:31:29 -03:00
Ivan Socolsky b9afbaf0de remove isChange arg from #createAddress 2015-02-08 18:45:13 -03:00
Ivan Socolsky 29e3b5a087 decreased running time on slow tests 2015-02-08 18:35:19 -03:00
Ivan Socolsky 53fa9fcace simultaneous tx creation 2015-02-08 18:29:58 -03:00
Ivan Socolsky e665db210b refactor join wallet tests 2015-02-08 13:36:44 -03:00
Ivan Socolsky c1a0ec6f5d add tests 2015-02-08 13:16:41 -03:00
Ivan Socolsky 516926c78a implement test to see tx proposal created by other copayers 2015-02-08 12:05:59 -03:00
Ivan Socolsky 00c56650da fix tx creation when wallet not complete 2015-02-08 11:53:06 -03:00
Ivan Socolsky 1ba97a3883 fix address creation when wallet not complete 2015-02-08 11:47:04 -03:00
Ivan Socolsky 70475fa17c remove recreate wallet test 2015-02-08 11:36:15 -03:00
Ivan Socolsky 7726a69ae5 fix txProposal#isPending 2015-02-08 11:20:22 -03:00
Matias Alejo Garcia e1ab87c173 txproposal id = time + uuid 2015-02-07 14:15:04 -03:00
Matias Alejo Garcia 44b9691e3e wallet id = uuid 2015-02-07 13:13:29 -03:00
Matias Alejo Garcia 97b6ebdc97 copayer id = uuid 2015-02-07 12:49:24 -03:00
Matias Alejo Garcia ea24e093c0 add tests to getTx 2015-02-07 11:48:39 -03:00
Matias Alejo Garcia 9cb47a680a index implemented for fetch pending 2015-02-07 11:47:25 -03:00
Ivan Socolsky 0ee2abf841 add TODO list and test cases 2015-02-07 11:15:54 -03:00
Ivan Socolsky 313ebee63d small refactor in tests 2015-02-06 20:59:59 -03:00
Ivan Socolsky c3f6442901 fix tests 2015-02-06 18:22:52 -03:00
Ivan Socolsky ddbfcbe7f5 refactor server & tests 2015-02-06 18:05:40 -03:00
Matias Alejo Garcia 1200f2b2f0 add tests to broadcast 2015-02-06 15:15:54 -03:00
Matias Alejo Garcia 4bf541c7b1 transaction signing 2015-02-05 15:50:18 -03:00
Matias Alejo Garcia 471a9e7c1a fix addresses in helper / utxos 2015-02-04 21:40:24 -03:00
Matias Alejo Garcia 9a88a6f8f6 fix addresses in helper / utxos 2015-02-04 21:38:23 -03:00
Matias Alejo Garcia 0758c2e842 signing test 2015-02-04 16:19:19 -03:00
Matias Alejo Garcia 08c90ad26b sign working 2015-02-04 16:19:18 -03:00
Ivan Socolsky fdd3b831c0 fix insufficient funds error msg & tests 2015-02-04 12:50:23 -03:00
Ivan Socolsky 8e7fa61466 refactor errors 2015-02-04 12:47:03 -03:00
Ivan Socolsky 7e5a8dc16d Merge pull request #10 from matiu/feat/createTx3
implements createTx
2015-02-03 23:33:00 -03:00
Matias Alejo Garcia 8ac34da3ef add createTx 2015-02-03 23:17:06 -03:00
Ivan Socolsky 72e27606b9 add tests to createAddress 2015-02-03 17:32:40 -03:00
Matias Alejo Garcia fc16cfa8af merge 2015-02-03 16:46:28 -03:00
Ivan Socolsky 7bf0f755ed add test to create many addresses simultaneously 2015-02-03 16:31:09 -03:00
Ivan Socolsky 8d8def9f4e refactor address manager 2015-02-03 15:44:44 -03:00
Ivan Socolsky 790fe56122 . 2015-02-03 10:53:59 -03:00
Ivan Socolsky 3ca1196819 add test for invalid m/n combination 2015-02-03 09:40:55 -03:00
Ivan Socolsky d4865de91d fix UTXOs selection & balance calculation 2015-02-02 22:00:11 -03:00
Matias Alejo Garcia c387b51867 run js-beautifier 2015-02-02 20:13:13 -03:00
Matias Alejo Garcia b5fbd55d89 getAddress working! 2015-02-02 17:22:32 -03:00
Matias Alejo Garcia 090faf62a2 add models tests 2015-02-02 17:21:29 -03:00
Matias Alejo Garcia 0bccc864fb create address + test in wallet 2015-02-02 17:21:29 -03:00
Matias Alejo Garcia 6227bb1e5f fix indexes, inheritance 2015-02-02 17:20:22 -03:00
Matias Alejo Garcia 7b68c14fb7 add indexes to copayer 2015-02-02 17:11:20 -03:00
Ivan Socolsky 07012633a9 checking arguments 2015-02-02 15:29:26 -03:00
Matias Alejo Garcia 37698a9292 skip broken tests 2015-02-02 09:12:08 -03:00
Matias Alejo Garcia c2e5cd91b8 integrates verifySignedMessage 2015-02-01 16:50:58 -03:00
Matias Alejo Garcia a91af80235 verify 2015-02-01 11:41:16 -03:00
Matias Alejo Garcia 8876f697a8 fix test name 2015-02-01 11:00:35 -03:00
Matias Alejo Garcia 67e6a99924 add signutils 2015-02-01 10:56:02 -03:00
Matias Alejo Garcia b1b29e7df1 adds pubKey validation 2015-01-31 19:57:11 -03:00
Ivan Socolsky 9f30af2690 . 2015-01-30 18:29:46 -03:00
Ivan Socolsky 94509eebab . 2015-01-30 17:37:30 -03:00
Ivan Socolsky d7a2dcc866 . 2015-01-29 15:00:35 -03:00
Ivan Socolsky 792d576bbf . 2015-01-28 17:40:37 -03:00
Ivan Socolsky 4fcbadddf7 . 2015-01-28 17:06:29 -03:00
Ivan Socolsky 8c8c7e51fb . 2015-01-28 16:40:07 -03:00