Commit Graph

171 Commits

Author SHA1 Message Date
Christopher Jeffrey 4e606c7ed2 paypro: move root certs to non-browser. 2014-07-21 14:55:10 -07:00
Christopher Jeffrey 29b067ab73 paypro: add createTrusted to browser build script. 2014-07-21 14:55:10 -07:00
Christopher Jeffrey 493f90f428 paypro: chmod +x generate-trusted.sh. 2014-07-21 14:54:38 -07:00
Christopher Jeffrey ee61422361 paypro: script to generate trusted.js from node.js root certs. 2014-07-21 14:54:38 -07:00
Ryan X. Charles b1722484a9 v0.1.32 2014-07-18 12:18:49 -07:00
Ryan X. Charles 3bed2e0da2 v0.1.31 2014-07-17 16:53:05 -07:00
Ryan X. Charles 0c8f7d4d21 move bitcore-dev.js -> bundle.js
To make it easier to test the master branch of bitcore with other apps,
especially Copay.
2014-07-17 16:30:47 -07:00
Ryan X. Charles 2c136d4dcc remove obsolete Curve class (G and n now accessible from Point) 2014-07-17 13:14:49 -07:00
Ryan X. Charles b8b500e109 up version to 0.1.30 2014-07-16 17:07:54 -07:00
Ryan X. Charles 2db98e1982 0.1.29: make bundle backwards-compatible with 0.1.25
npm doesn't play well with the symlink bitcore-latest.js. Instead, put the
latest main bundle in bundle.js (which is what it used to be called) so
packages like Copay can use the latest bundle just like how they used to.
2014-07-16 14:57:04 -07:00
Ryan X. Charles 77ff084413 update bitcore-latest.js 2014-07-16 11:39:13 -07:00
Ryan X. Charles 500037acd3 bump version to 0.1.28 2014-07-16 11:39:13 -07:00
Ryan X. Charles fc942c2ac5 remove network stuff from main build
The network classes Connection, Peer and PeerManager are not useful from the
browser, so I have removed them from the main browser bundle by default.  This
saves several tens of kilobytes from the browser bundle (since not only are
these files not included, but their dependencies are not included either).
2014-07-14 20:53:22 -07:00
Ryan X. Charles 572035fdd5 add some test vectors for secp256k1 2014-07-11 14:47:48 -07:00
Ryan X. Charles af1d754bd8 make bignum interface backwards compatible
- fix cmp, mul, div, add, mod, sub functions to take numbers and strings
- fix Point class to use common folder correctly
2014-07-10 18:14:13 -07:00
Ryan X. Charles af6d0a5d02 remove cryptojs dependency
...and all vendor bundle files.
2014-07-10 16:22:42 -07:00
Ryan X. Charles 0b33869665 add 0.1.27 browser bundle and point latest to it 2014-07-10 16:12:18 -07:00
Manuel Araoz 0e2df698cd fix SIN and add tests 2014-07-10 17:17:24 -03:00
Manuel Araoz 87b818badf remove soop exports 2014-07-10 16:08:42 -03:00
Manuel Araoz cd7eae8359 remove soop inheritance system 2014-07-10 11:46:44 -03:00
Ryan X. Charles c93419a750 up version to 0.1.26 2014-07-07 20:55:21 -07:00
Ryan X. Charles 153cb7ad50 add "real" 0.1.24 and 0.1.25, and...
In this commit I have added the 'official' versions 0.1.24 and 0.1.25 to the
repo, and also created a new bitcore-dev.js that is not included in the repo.
bitcoin-dev.js is what we will use for development. When we define a new
version, we create a new bitcore-x.x.x.js file, and point bitcore-latest.js to
that. Note that the bitcore-x.x.x.js files should always be the "main" bundle,
which does not include BIP39 or BIP70, or other large packages.
2014-07-07 19:50:57 -07:00
Ryan X. Charles 4e3b258f07 Merge remote-tracking branch 'maraoz/feature/bundle-name'
Conflicts:
	browser/bitcore-0.1.24.js
2014-07-07 19:00:26 -07:00
Ryan X. Charles 41a687cd36 up version to 0.1.25 2014-07-07 09:51:21 -07:00
Manuel Araoz 9ac8682fb0 minify browser version 2014-07-04 15:21:42 -03:00
Manuel Araoz fcde4e84ad add new bundles and symbolic link 2014-07-04 15:15:35 -03:00
Manuel Araoz 7b3c074900 change bundle name 2014-07-04 15:08:45 -03:00
Ryan X. Charles 0722ce46d7 comment typo 2014-07-02 11:51:15 -07:00
Ryan X. Charles 0bea06f785 add BIP70 protobuf features in new PayPro lib file
...and add to the "main" bundle, but not the "all" bundle, since it adds
hundreds of kilobytes to the bundle.
2014-07-02 11:39:21 -07:00
Ryan X. Charles ca67786a77 ran js-beautify on all bitcore source
js-beautify -s 2 -r *.js

...did not run on bundles, only on source.
2014-06-23 10:57:02 -07:00
Ryan X. Charles ad5e83f9ff Merge branch 'bip39'
Conflicts:
	browser/bundle.js
2014-06-20 19:35:24 -07:00
Ryan X. Charles 266759ff60 Merge remote-tracking branch 'devrandom/bip39'
Conflicts:
	test/index.html
2014-06-20 19:34:21 -07:00
Ryan X. Charles 4a59418c82 add concept of "main" bundle and remove BIP39
Some features of bitcore will be too large to be included in the browser bundle
by default. Since BIP39 pretty much requires the giant list of words to be
used, I am excluding it by default. The ability to exclude some features by
default will become useful with some particularly large features to come,
particularly BIP70.
2014-06-20 19:31:01 -07:00
Ryan X. Charles 54c8e04738 remove unbuilding c code, and ...
* Remove c code that didn't compile on my machine
* Replace with sjcl code
* Minor modifications to mnemonic interface more bitcoreish
2014-06-20 19:09:21 -07:00
Ryan X. Charles 83aada8648 Merge pull request #379 from ryanxcharles/feature/address-throw-error
throw error when using invalid length hash in Address constructor
2014-06-13 08:17:18 -07:00
Ryan X. Charles c94d278958 up version to 0.1.24 2014-06-12 15:09:09 -07:00
Manuel Araoz 0d670ff979 suggestions by ryan 2014-06-12 16:54:59 -03:00
Manuel Araoz b402bbfa6c fixing copay problems 2014-06-12 16:28:00 -03:00
Manuel Araoz 5c11ac3e87 malloc -> calloc, to fix linux version 2014-06-12 13:56:29 -03:00
Manuel Araoz d313ed037e trying to fix 2014-06-12 12:29:51 -03:00
Manuel Araoz a2b8bb0f51 even weirder fix 2014-06-12 12:29:51 -03:00
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
Devrandom 79d50e92d4 BIP39 in browser 2014-06-08 12:43:05 -07:00
Ryan X. Charles 338158ca46 fix sjcl issue on npm install
...by including sjcl locally
2014-06-06 11:49:58 -07:00
Ryan X. Charles c488268a3c update version to 0.1.22 2014-06-06 08:37:42 -07:00
Ryan X. Charles 80ccaa8396 rename "rand" to more explanatory "getRandomSeed" 2014-06-05 16:41:47 -07:00
Ryan X. Charles 117eaa4288 remove underscore dependency to decrease bundle size 2014-06-04 18:43:00 -07:00
Ryan X. Charles a242112e66 replace jssha with sjcl - remove jssha dependency 2014-06-04 18:13:32 -07:00
Ryan X. Charles af9fdff3a9 use SJCL AES to get ECIES working in the browser 2014-06-03 19:03:50 -07:00
Ryan X. Charles e963ff3c45 add ECIES support in node - not browser 2014-06-02 20:15:58 -07:00
Matias Alejo Garcia 691fec5342 fix .fromScriptPubKey parsing in some strange Txs 2014-05-25 22:25:12 -03:00
Ryan X. Charles 5594f82398 up version to 0.1.21
...to make sure compiled bundle is absolutely the latest.
2014-05-23 18:12:09 -07:00
Ryan X. Charles 1361bd2939 fix npm install issue and up version
Bitcore in Copay is not being installed correctly due to changes we made
recently in the way bitcore is compiled (it is not compiled on install, but on
prepublish). This adds all the bundles to the repo to fix that issue.
2014-05-23 16:25:39 -07:00
Matias Alejo Garcia 4bd96e72f4 . 2014-05-13 10:46:55 -03:00
Ryan X. Charles c038abc8e7 rename BIP32 -> HierarchicalKey, deprecate BIP32
Sounds better.
2014-05-11 13:09:57 -04:00
olalonde b26dd77911 Armory: added to bitcore.js, build.js and browser example 2014-05-08 07:54:11 +08:00
olalonde 78ae388553 Replace process.versions tests by browserify's package.json browser field. Fixes #329 2014-05-07 14:14:10 +08:00
Ryan X. Charles 7f348ca0bd Move BigNumber to internal
...no longer relies on Manuel's repo hostig a version of "bignum" that actually
contained bignumber.js. This moves bignumber.js internally and removes bignum
from the browser build process. Also adds a bitcore.Bignum that links to the
right thing. In node, browser.Bignum is require('bignum'). And in the browser,
bitcore.Bignum is is now Bignumber.js (same as before ... except bignumber.js
is now inside bitcore).
2014-04-28 18:00:59 -04:00
Ryan X. Charles c7b33eca9a update key signing to use new SecureRandom
...and throw an error if you try to use the old, non-secure random number
generator.
2014-04-25 15:00:51 -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
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
Manuel Araoz 6e306c4cb1 bundler changes for customizer 2014-04-22 12:26:57 -03:00
Manuel Araoz ebafcb94a3 changing browser builder 2014-04-22 12:26:57 -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
Eric Martindale 9771d8138d Fix browser bundling with new architecture. 2014-04-17 18:05:43 -04:00
Manuel Araoz 3cbcbd54cb fix Buffers.skip in the browser 2014-04-10 18:52:13 -03:00
Ryan X. Charles 45fb78296a Merge pull request #225 from unusualbob/bug/browserbuildwindows
Fix exec syntax in browser/build.js, fixes error on windows
2014-04-08 16:20:52 -03:00
unknown d8c8288ce4 Change to @olalonde suggestion for compatibility on both *nix and windows 2014-04-08 10:48:06 -04:00
unknown 880efdc22f Fix exec syntax in browser/build.js, fixes error on windows 2014-04-08 03:54:35 -04:00
Ryan X. Charles 93050e3e92 Merge branch 'feature/TransactionBuilder' 2014-03-30 21:02:22 -04:00
Matias Alejo Garcia 26b7f89f39 update examples and readme 2014-03-28 23:39:12 -03: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
Ryan X. Charles f6aa01c445 add basic tests for all functions in Point 2014-03-28 18:07:23 -04:00
Ryan X. Charles c03d3c5818 get BIP32 working in the browser by exposing more crypto 2014-03-27 23:34:17 -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
Matias Alejo Garcia 684be77268 small fixes in block, adapt to browser bignum. remove legacy code 2014-03-21 16:39:38 -03:00
Manuel Araoz e8013cfed0 fix dir 2014-03-14 10:38:50 -03:00
Manuel Araoz eb90bc152b base dir 2014-03-14 10:38:49 -03:00
Manuel Araoz 5e0ae915f2 muting testdata for stdout 2014-03-14 10:38:49 -03:00
Manuel Araoz f9d4c66c0f remove extra prints 2014-03-14 10:38:49 -03:00
Manuel Araoz b696dae603 make stdout output possible 2014-03-14 10:38:49 -03:00
Manuel Araoz c9607e5821 fix paths 2014-03-14 10:38:49 -03:00
Manuel Araoz a675f4566c fix paths 2014-03-14 10:38:49 -03:00
Manuel Araoz b1c038b4d0 add dir option 2014-03-14 10:38:49 -03:00
Manuel Araoz c72cab1803 add exports 2014-03-14 10:38:49 -03:00
Manuel Araoz e0557d0dea check submodule validity 2014-03-14 10:38:49 -03:00
Manuel Araoz dabfbc0cf3 modularize browser build.js 2014-03-14 10:38:49 -03:00
Ryan X. Charles 34f92b605d soop may not be in the bitcore directory
If bitcore is being built inside of another project that uses soop, soop may
not be in the bitcore directory. We need to find the location of soop and then
find the custom_prelude script relative to that.
2014-03-13 12:41:11 -04:00
Ryan X. Charles c565d6207c Merge pull request #140 from matiu/bug/fix-ripe160-and-address
Bug/fix ripe160 and address
2014-03-12 18:03:40 -04:00
Manuel Araoz 69dbb24bce make util dependencies optional 2014-03-12 17:03:37 -03:00
Manuel Araoz 348cf50636 minify bundle 2014-03-12 16:40:25 -03:00
Matias Alejo Garcia 0f8ee57521 refactor ripe160 binding 2014-03-12 15:34:19 -03:00
Matias Alejo Garcia dc8d23dba5 fix conflicts 2014-03-12 11:56:10 -03:00
Matias Alejo Garcia ab183c0e66 fixes ripe160 add some tests 2014-03-12 11:40:10 -03:00
Manuel Araoz c339fb1f2f change README names 2014-03-12 09:37:24 -03:00
Manuel Araoz dbc968e226 fixing postinstall 2014-03-12 09:24:18 -03:00
Manuel Araoz fa7e205de8 still trying to fix postinstall 2014-03-12 09:20:59 -03:00
Manuel Araoz 409bb093d5 configurable submodules for browser bundle 2014-03-11 18:17:03 -03:00