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.
11 years ago
Ryan X. Charles
dbcf270826
use SecureRandom in Key in the browser
...to make sure random numbers are generated securely
11 years ago
Ryan X. Charles
4693d5bc41
remove unnecessary "change" console.log from Electrum test
11 years ago
Ryan X. Charles
75d2d0d390
fix issues with ConnectionTor example and Connection class
11 years ago
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.
11 years ago
Ryan X. Charles
2c553c0dd9
Merge pull request #280 from ryanxcharles/feature/improve-bip32-speed
BIP32 speed improvement
11 years ago
Ryan X. Charles
aa145c4f6c
Merge pull request #273 from ryanxcharles/feature/refactor-node-browser
WIP: Node/browser refactor
11 years ago
Ryan X. Charles
f82fa5007a
move *.browser and *.node to browser/* and node/*
...this should leave the lib folder a little bit less cluttered.
11 years ago
Ryan X. Charles
a179251152
split Key node tests into separate file
11 years ago
Ryan X. Charles
05d86b6453
split up Key into Key.browser and Key.node
11 years ago
Ryan X. Charles
abc799f453
split up Point into separate node and browser versions
11 years ago
Ryan X. Charles
86bb67b76d
remove unnecessary bignum conversion
11 years ago
Ryan X. Charles
6a4387e768
allow creating blank BIP32 by passing in null
11 years ago
Ryan X. Charles
d52e8ac8ed
remove multiple concats with one, more efficient, concat
11 years ago
Ryan X. Charles
46fe8ea800
Merge pull request #278 from ryanxcharles/feature/default-bip32-livenet
default BIP32 to livenet
11 years ago
Ryan X. Charles
8a3f2b6b9b
Merge pull request #279 from maraoz/feature/update-bundler
Feature/update bundler
11 years ago
Manuel Araoz
6e306c4cb1
bundler changes for customizer
11 years ago
Manuel Araoz
aadc01e5a1
fix async dep
11 years ago
Manuel Araoz
ebafcb94a3
changing browser builder
11 years ago
Ryan X. Charles
d54fa570a2
default BIP32 to livenet
11 years ago
Ryan X. Charles
7f7d076c7f
Merge remote-tracking branch 'olalonde/electrum'
11 years ago
Ryan X. Charles
3267925ebf
Merge remote-tracking branch 'gordonwritescode/feature/peer-discovery'
11 years ago
Ryan X. Charles
e4e45c5245
add Electrum to browser build and tests
11 years ago
olalonde
8e30c05e3e
Electrum: removed dead code
11 years ago
olalonde
2644dbb2db
Electrum.js: wrote some tests
11 years ago
olalonde
7466d916f1
Electrum.js specified what is supported for now
11 years ago
olalonde
c818b549c6
Added Electrum.js which allows Electrum style key derivation
11 years ago
Gordon Hall
9934b29eff
update example, added log statements to status check in peer manager for showing how many good peers there are
11 years ago
Gordon Hall
def036b79f
setup connection pool and auto handling of bad seeds
11 years ago
Ryan X. Charles
0235324bed
update version to 0.1.12
Major updates since last version:
* SOCKS5 support
* Move classes to ./lib
* Message signing/verification
* Many minor updates
11 years ago
Gordon Hall
8b17591661
fix example
11 years ago
Gordon Hall
f877b3e563
some aesthetic changes
11 years ago
Gordon Hall
9cbab7f67e
fix networks var in discoverPeers() to match what might be imported
11 years ago
Gordon Hall
e82867007e
simplified example for peer discovery, added some debug output to discoverPeers(), made Peer reference the connection created from createConnection()
11 years ago
Gordon Hall
76247ff532
resolved merge conflicts
11 years ago
Gordon Hall
ba8542de62
add support for peer discovery to PeerManager and example of usage to examples/
11 years ago
Ryan X. Charles
0b00200d8d
Merge pull request #270 from ryanxcharles/feature/sign-message
WIP: add support for signing/verifying messages
11 years ago
Gordon Hall
6e8589e9b3
add extend dependency, use to extend defaults with config in PeerManager instead of overwiting all
11 years ago
Ryan X. Charles
55061776ac
add Message to browser build and tests
11 years ago
Ryan X. Charles
659dc10f96
add support for signing/verifying messages
This adds a new Message class with static methods for signing and verifying a
message the same way as bitcoind. (In a nutshell, messages a prepended with
"Bitcoin Signed Message:" before being hashed and signed).
There is one important piece missing ... verifying a signature with an address,
and not a public key. I have not yet implemented this because the cryptography
interface of bitcore does not allow me to derive the public key from a
signature. This will need to be added before verifying from an address is
possible.
11 years ago
Ryan X. Charles
a0841638ee
Merge pull request #268 from matiu/feature/addresss-fromscriptpubkey
add new constructor to Address (fromScriptPubKey)
11 years ago
Matias Alejo Garcia
5a1d572a8d
add new constructor to Address (fromScriptPubKey)
11 years ago
Eric Martindale
9771d8138d
Fix browser bundling with new architecture.
11 years ago
Eric Martindale
0ae2fc73ab
Merge branch 'master' of github.com:bitpay/bitcore into clean
Conflicts:
examples/PeerManager.js
examples/SendTx.js
lib/Connection.js
lib/PeerManager.js
11 years ago
Ryan X. Charles
9f278cf848
fix "config" vs "options" vs "opts" bug
11 years ago
Ryan X. Charles
2f6c5ac181
Merge remote-tracking branch 'maraoz/refactor/PeerManager'
Conflicts:
Connection.js
PeerManager.js
11 years ago
Ryan X. Charles
026ebe38aa
update tor example to have better error messages
11 years ago
Ryan X. Charles
a1ef9c5220
make Connection test only run in node
...since it doesn't make sense for the browser
11 years ago
Ryan X. Charles
da7fede2c0
Merge remote-tracking branch 'gordonwritescode/feature/tor'
11 years ago
Manuel Araoz
fc1dcbd9d0
fix and improve SendTx example
11 years ago