Ryan X. Charles
9575929162
Merge branch 'feature/secure-random'
...
Conflicts:
lib/browser/Key.js
2014-04-24 09:19:58 -03:00
Ryan X. Charles
350f6ae998
Key should make sure new privkey is less than N
...
...this involves adding a Curve class, and significant refactoring to make this
possible in a clean way.
2014-04-23 21:15:55 -03:00
Manuel Araoz
2a829c4525
reduce number of cases for browser
2014-04-23 15:06:11 -03:00
Ryan X. Charles
ba692aaa20
add new SecureRandom class that does the right thing
...
Generating random numbers properly depends on the platform. The new
getRandomBuffer method does the right thing on the right platform. It will
sometimes fail due to insufficient entropy. The getPseudoRandomBuffer class is
also provided that will never fail, but it is not cryptographically secure and
should not be used for keys.
2014-04-22 22:18:59 -03:00
Ryan X. Charles
e4e45c5245
add Electrum to browser build and tests
2014-04-20 17:49:43 -03:00
Ryan X. Charles
55061776ac
add Message to browser build and tests
2014-04-19 11:41:00 -03:00
Ryan X. Charles
4f5b41eff0
fix browser tests for Point and Key
...
The addUncompressed function is for node-only, and is a temporary workaround
until we expose a better crypto interface in both node and the browser. I wrote
tests for this function that were node-only, but were broken in the browser. I
also wrote tests for the Point class that should have worked in both node and
the browser, and did, but I was using the wrong module such that it worked only
in node. This update makes the tests work in the browser by using the correct
module.
2014-03-31 16:32:16 -04:00
Ryan X. Charles
93050e3e92
Merge branch 'feature/TransactionBuilder'
2014-03-30 21:02:22 -04:00
Ryan X. Charles
6a478de259
add transaction builder test to browser
2014-03-30 21:01:40 -04:00
Ryan X. Charles
a0daef56d9
Merge pull request #165 from ryanxcharles/feature/bip32
...
BIP 32 (hierarchical deterministic wallets)
2014-03-28 18:54:58 -04:00
Manuel Araoz
18630bb2b1
fix browser tests
2014-03-26 12:00:03 -03:00
Ryan X. Charles
ba59d97a73
make things work in the browser by fixing sha512
...
...had to use jsSHA package to do SHA512 in the browser. Unfortunately it is
quite slow compared to node.
2014-03-22 16:16:58 -07:00
Manuel Araoz
409bb093d5
configurable submodules for browser bundle
2014-03-11 18:17:03 -03:00
Manuel Araoz
a2e6e88569
fixing testdata inclusion in browser
2014-03-10 14:55:30 -03:00
Ryan X. Charles
0adbc55e82
make browser tests work by including testdata
...
...testdata was not being loaded correctly by the new browserify.js file, and
thus not all the tests were working. I have fixed this by including "testdata"
as one of the modules that is compiled by the browserify.js script.
2014-03-08 21:34:21 -05:00
Matias Alejo Garcia
089fbab719
support soop with browser all test passing
2014-03-08 18:42:08 -03:00
Manuel Araoz
6a24e7fbe0
load test data from files
2014-02-24 11:59:43 -03:00
Manuel Araoz
b4642e8924
all tests working in browser :D
2014-02-24 09:39:42 -03:00
Manuel Araoz
3e5e0057b1
Key tests working in the browser~!!!
2014-02-24 09:39:42 -03:00
Manuel Araoz
915c048c3b
browser ECDSA compressed key generated
2014-02-24 09:39:42 -03:00
Manuel Araoz
0f393cb989
ECDSA key browser work
2014-02-24 09:39:42 -03:00
Manuel Araoz
47fb987600
Added more classes to browser
2014-02-19 16:07:50 -03:00
Manuel Araoz
ed90a2ebe6
Browserify Bloom
2014-02-19 12:49:21 -03:00
Manuel Araoz
8ab1c3feae
Transaction, Connection, Peer, Block, ScriptInterpreter working in the browser!
2014-02-19 12:36:19 -03:00
Manuel Araoz
0d5573dc16
Script class working in browser!
2014-02-06 15:49:22 -03:00
Manuel Araoz
e295e33800
starting with Transaction class
2014-02-06 12:57:47 -03:00
Manuel Araoz
fc93218c56
Address working in the browser
2014-02-05 18:15:10 -03:00
Manuel Araoz
0a6ddaffa3
EncodedData working in the browser
2014-02-05 18:15:10 -03:00
Manuel Araoz
304fdc013d
starting address migration
2014-02-05 18:15:10 -03:00
Manuel Araoz
a47720eec1
remove mocha files
2014-02-04 16:37:34 -03:00
Manuel Araoz
5a90473d12
tests work in browser and node
2014-02-04 16:37:34 -03:00
Manuel Araoz
12d7274588
added testing framework for the browser
2014-02-04 16:37:34 -03:00