bitcore-lib-zcash/test
Ryan X. Charles 65ab3a663a fix string/buffer sjcl issue
...by using sjcl.mode.cbc.encrypt/decrypt rather than sjcl.encrypt/decrypt. The
difference is that the sjcl.encrypt/decrypt functions are really convenience
methods designed to encrypt and decrypt strings, but don't play nice with
binary data, as revealed in the tests in this commit and the previous commit.
Basically, if you use them to encrypt and decrypt binary data as a string, it
will return the wrong result or an error.

The solution is to use the block cipher directly, in this case sjcl.mode.cbc.
This also has the advantage of fewer format conversions - no converting to
base64 and JSON strings. This makes things faster. Also, it is actually correct
unlike the previous method.
2014-07-09 16:25:48 -07:00
..
data remove unused code from Script. Update it to do not use scriptSig placeholders 2014-04-22 21:09:22 -03:00
adapter.js fixing testdata inclusion in browser 2014-03-10 14:55:30 -03:00
index-testling.html add Message to browser build and tests 2014-04-19 11:41:00 -03:00
index.html add "real" 0.1.24 and 0.1.25, and... 2014-07-07 19:50:57 -07:00
mocha.opts Bitcoin address tests, from bitcoin/bitcoin.git 2013-07-09 16:02:59 -04:00
mute.js malloc -> calloc, to fix linux version 2014-06-12 13:56:29 -03:00
test.Address.js Fix checksum comparison error. Closes #402 2014-07-03 09:17:54 -07:00
test.Armory.js Armory: added tests 2014-05-08 07:54:12 +08:00
test.BIP39.js add check function for BIP39 2014-07-01 14:00:08 -07:00
test.Base58.js Fix checksum comparison error. Closes #402 2014-07-03 09:17:54 -07:00
test.Bignum.browser.js fix bignum issue 2014-04-29 17:59:24 -04:00
test.Block.js fix firefox compatibility issue with buffertools#compare 2014-03-21 18:52:49 -03:00
test.Bloom.js support soop with browser all test passing 2014-03-08 18:42:08 -03:00
test.Connection.js make Connection test only run in node 2014-04-17 15:07:19 -03:00
test.Curve.js Move BigNumber to internal 2014-04-28 18:00:59 -04:00
test.ECIES.js fix string/buffer sjcl issue 2014-07-09 16:25:48 -07:00
test.Electrum.js remove unnecessary "change" console.log from Electrum test 2014-04-22 22:41:57 -03:00
test.EncodedData.js support soop with browser all test passing 2014-03-08 18:42:08 -03:00
test.HierarchicalKey.js malloc -> calloc, to fix linux version 2014-06-12 13:56:29 -03:00
test.Key.js malloc -> calloc, to fix linux version 2014-06-12 13:56:29 -03:00
test.Key.node.js split Key node tests into separate file 2014-04-22 19:13:35 -03:00
test.Message.js add tests that confirm Message works with buffers 2014-06-25 14:30:28 -07:00
test.Opcode.js remove eval 2014-05-05 10:43:24 -04:00
test.PayPro.js add sign/verify with pki_type SIN 2014-07-03 15:35:32 -07:00
test.Peer.js adding few tests for Peer.js 2014-06-19 01:07:45 -07:00
test.PeerManager.js add test for config extending properly 2014-04-28 12:33:34 -04:00
test.Point.js Move BigNumber to internal 2014-04-28 18:00:59 -04:00
test.PrivateKey.js add test for .isValid() function 2014-04-10 12:30:57 -03:00
test.RpcClient.js support soop with browser all test passing 2014-03-08 18:42:08 -03:00
test.SIN.js support soop with browser all test passing 2014-03-08 18:42:08 -03:00
test.SINKey.js support soop with browser all test passing 2014-03-08 18:42:08 -03:00
test.Script.js rm console.log 2014-05-26 12:40:07 -03:00
test.ScriptInterpreter.js fix test code for Transaction. Test skipped because they still fail 2014-03-21 12:13:23 -07:00
test.SecureRandom.js iterate array correctly so that random number is actually used in signing 2014-05-01 10:09:33 -04:00
test.Transaction.js add normalized hash for Txs 2014-04-10 23:30:04 -03:00
test.TransactionBuilder.js Resolves #373 2014-06-19 08:40:30 -07:00
test.VersionedData.js support soop with browser all test passing 2014-03-08 18:42:08 -03:00
test.Wallet.js support soop with browser all test passing 2014-03-08 18:42:08 -03:00
test.WalletKey.js remove PeerManager exception, no necesary anymore 2014-03-12 00:11:12 -03:00
test.basic.js network refactors 2014-04-07 18:31:17 -03:00
test.examples.js add ECIES example 2014-06-06 14:34:42 -07:00
test.main.js support soop with browser all test passing 2014-03-08 18:42:08 -03:00
test.misc.js rename BIP32 -> HierarchicalKey, deprecate BIP32 2014-05-11 13:09:57 -04:00
test.random.js skip statistically failing tests 2014-04-23 15:55:35 -03:00
test.sighash.js fixed 23 Transaction tests!!! :D 2014-04-04 17:33:36 -03:00
test.util.js add test to confirm correctness of sha512hmac 2014-06-04 18:57:26 -07:00
testdata.js adding new data file from bitcoin core 2014-04-04 14:39:06 -03:00