Ryan X. Charles
f87da3b5ba
add support for signing messages in compressed format
...this is the standard way to sign messages in bitcoin-qt. Note that the
format of a compressed signature, for messages, is quite distinct from DER
format, which is used in transactions. This commit also adds support for
recovering the public key from a signature, which is necessary for this. The
code for public key recover is taken from bitcoinjs-lib.
11 years ago
Ryan X. Charles
5f6d02f5de
add proper DER signature support to Key
both creating DER signature from the r and s values, and parsing a DER
signature into the r, s, and other properties.
11 years ago
olalonde
78ae388553
Replace process.versions tests by browserify's package.json browser field. Fixes #329
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
05d86b6453
split up Key into Key.browser and Key.node
11 years ago
Eric Martindale
a2d616da5b
Project reorganization.
11 years ago
Eric Martindale
f3b1c2d292
Cleanup main directory.
11 years ago
Ryan X. Charles
c03d3c5818
get BIP32 working in the browser by exposing more crypto
11 years ago
Manuel Araoz
230420fb00
fix test code for Transaction. Test skipped because they still fail
11 years ago
Manuel Araoz
ba92a6b1df
refactor and fixes for Transaction, ScriptInterpreter, and Key
11 years ago
Manuel Araoz
f0b9cd0cab
complete base58_keys_valid tests
11 years ago
Ryan X. Charles
05f6e28642
update interface, bitcore.KeyModule.Key -> bitcore.Key
It's annoying and easy to forget to type in bitcore.KeyModule.Key. I have
updated this so that now you can just do bitcore.Key. Tests pass in node and
the browser. This is a backwards-incompatible change so all software that
depends on the old style key generation will need to be updated.
11 years ago
Matias Alejo Garcia
2a6f7155b3
fix sigatures and verifications on browser
11 years ago
Matias Alejo Garcia
df0aa74483
set default for compressed state
11 years ago
Matias Alejo Garcia
6af1b1dab6
add broken test for sha256ripe160
11 years ago
Matias Alejo Garcia
5be37f2c7b
remove PeerManager exception, no necesary anymore
11 years ago
Manuel Araoz
18b2d190de
change vendor.js to vendor-bundle.js
11 years ago
Manuel Araoz
069f67e924
fix Key tests
11 years ago
Manuel Araoz
76cf42506c
refactoring browser code
11 years ago
Matias Alejo Garcia
cfc3ca35d4
remove constructor params in browser version of KeyModule
11 years ago
Matias Alejo Garcia
8f61401099
add support for Sign and Verify in Key for Browser. Tests added
11 years ago
Manuel Araoz
3e5e0057b1
Key tests working in the browser~!!!
11 years ago
Manuel Araoz
915c048c3b
browser ECDSA compressed key generated
11 years ago
Jeff Garzik
bf1e16b0da
Add PrivateKey, Key classes. Update test to enc/dec private key test vectors.
12 years ago