flocore/test
Ryan X. Charles c2e5a14eed throw error when using invalid length hash in Address
I have often made the error of using a public key rather than the hash of the
public key when creating an address, leading to invalid addresses. I'm sure I'm
not the only one. This commit follows the principle of "fail early, fail often"
and simply throws an error if you try to insert something other than 20 bytes
long when creating an address, which would be the case when using a public key.
This way that common mistake should be reduced.
2014-06-11 18:13:39 -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 run HierarchicalKey tests in the browser 2014-06-11 14:28:30 -07:00
mocha.opts Bitcoin address tests, from bitcoin/bitcoin.git 2013-07-09 16:02:59 -04:00
mute.js add new example 2014-03-12 15:22:56 -03:00
test.Address.js throw error when using invalid length hash in Address 2014-06-11 18:13:39 -07:00
test.Armory.js Armory: added tests 2014-05-08 07:54:12 +08:00
test.Base58.js fix bignum issue 2014-04-29 17:59:24 -04:00
test.basic.js network refactors 2014-04-07 18:31:17 -03: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 rename "rand" to more explanatory "getRandomSeed" 2014-06-05 16:41:47 -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.examples.js add ECIES example 2014-06-06 14:34:42 -07:00
test.HierarchicalKey.js rename BIP32 -> HierarchicalKey, deprecate BIP32 2014-05-11 13:09:57 -04:00
test.Key.js add some basic sanity tests for signatures and key generation 2014-05-01 12:27:55 -04:00
test.Key.node.js split Key node tests into separate file 2014-04-22 19:13:35 -03:00
test.main.js support soop with browser all test passing 2014-03-08 18:42:08 -03:00
test.Message.js add some basic sanity tests for signatures and key generation 2014-05-01 12:27:55 -04:00
test.misc.js rename BIP32 -> HierarchicalKey, deprecate BIP32 2014-05-11 13:09:57 -04:00
test.Opcode.js remove eval 2014-05-05 10:43:24 -04:00
test.Peer.js support soop with browser all test passing 2014-03-08 18:42:08 -03: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.random.js skip statistically failing tests 2014-04-23 15:55:35 -03:00
test.RpcClient.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.sighash.js fixed 23 Transaction tests!!! :D 2014-04-04 17:33:36 -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.Transaction.js add normalized hash for Txs 2014-04-10 23:30:04 -03:00
test.TransactionBuilder.js Exporting a constant on TransactionBuilder for use on Copay (to check available funds to spend). A simple test for this. 2014-06-11 19:00:11 -03:00
test.util.js add test to confirm correctness of sha512hmac 2014-06-04 18:57:26 -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
testdata.js adding new data file from bitcoin core 2014-04-04 14:39:06 -03:00