Manuel Araoz
d8827cf9fd
skip statistically failing tests
11 years ago
Manuel Araoz
17d0eeeb00
skip pending tests:wq
11 years ago
Manuel Araoz
2a829c4525
reduce number of cases for browser
11 years ago
Manuel Araoz
34ac69616a
fix runs test
11 years ago
Manuel Araoz
532564461e
testing RNG
11 years ago
Manuel Araoz
0095f5c9d0
rng statistic testswq
11 years ago
Matias Alejo Garcia
9951b55a4f
signature sorting in .sign and .merge in transaction builder
11 years ago
Matias Alejo Garcia
56d81bc0df
remove unused code from Script. Update it to do not use scriptSig placeholders
11 years ago
Matias Alejo Garcia
e8ebd2e332
add tx validation to test
11 years ago
Ryan X. Charles
a179251152
split Key node tests into separate file
11 years ago
Ryan X. Charles
abc799f453
split up Point into separate node and browser versions
11 years ago
Ryan X. Charles
e4e45c5245
add Electrum to browser build and tests
11 years ago
olalonde
2644dbb2db
Electrum.js: wrote some tests
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
Matias Alejo Garcia
5a1d572a8d
add new constructor to Address (fromScriptPubKey)
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
a749dc9d97
fix key tests for browser
Some tests that were intended for node only were running the browser. This
update removes those tests from the browser.
11 years ago
Manuel Araoz
bec26d80d6
fix TB test
11 years ago
Matias Alejo Garcia
9a25122b4f
add merge options
11 years ago
Matias Alejo Garcia
233438f899
merge working!
11 years ago
Matias Alejo Garcia
52d47bf30e
remove txobj from this! #merge WIP
11 years ago
Matias Alejo Garcia
185ebe8ebb
add from-to Obj in Transaction Builder
11 years ago
Gordon Hall
e53a2341c3
updated connection tests
11 years ago
Ryan X. Charles
e61aa8528f
add some tests to make sure changes to Key C++ code work as expected
11 years ago
Matias Alejo Garcia
d0f2601512
add normalized hash for Txs
11 years ago
Matias Alejo Garcia
d507e7f3d5
add signatureAdded counter
11 years ago
Manuel Araoz
3cbcbd54cb
fix Buffers.skip in the browser
11 years ago
Manuel Araoz
b58d5c5084
fix formatting
11 years ago
Manuel Araoz
6a5aa76b76
Buffers.monkey now at 100% coverage
11 years ago
Manuel Araoz
521a260afc
remove deprecated chai uses
11 years ago
Ryan X. Charles
c5cd242d15
add test for .isValid() function
11 years ago
Matias Alejo Garcia
a8f5f9fcb8
remove unused params in example
11 years ago
Ryan X. Charles
a7c8cf49b3
update fromPubKeys to use fromScript
This means fewer code-duplication. Also added another test for fromScript to
make sure it is thoroughly tested. Also pass through opts to createMultisig so
that you can choose to lot let it be sorted if you want.
11 years ago
Ryan X. Charles
ae14c4aaa0
new convenient interface for creating addresses
To create an address from a public key or script, you used to have to do the
hashing yourself, and find the version yourself. For example:
var hash = bitcore.util.sha256ripe160(pubkey);
var version = bitcore.networks['livenet'].addressVersion;
var addr = new Address(version, hash);
But with this interface, things are much simpler:
var addr = Address.fromPubKey(pubkey);
The new convenience methods are:
Address.fromPubKey (for regular pubkeyhash addresses)
Address.fromPubKeys (for p2sh multisig addresses)
Address.fromScript (for any p2sh address)
11 years ago
Manuel Araoz
72a44154d4
fix testling config
11 years ago
Ruben de Vries
3118ab1d0c
updated the calcDifficulty test to make it clear with what we're testing
11 years ago
Ruben de Vries
9c6c300289
fixed calcDifficulty by making sure the MAX_TARGET is also locally available.
added tests for 2 difficulty calculations.
11 years ago
Manuel Araoz
71353426f6
network refactors
11 years ago
Manuel Araoz
0b2dae43c5
remove console.logs and std::couts
11 years ago
Manuel Araoz
406600720e
valid tx tests passing!
11 years ago
Manuel Araoz
34ed503830
fixed 23 Transaction tests!!! :D
11 years ago
Manuel Araoz
db38feacce
fix old tests for sighash
11 years ago
Manuel Araoz
3886bfe923
some hashForSignature tests passing! :D
11 years ago
Manuel Araoz
cc8010f17f
adding new data file from bitcoin core
11 years ago
Manuel Araoz
499b171947
tracking Transaction test problems
11 years ago
Matias Alejo Garcia
56bed9b3f2
fix noSorting, add testcase against bitcoind output
11 years ago
Matias Alejo Garcia
8ff1464b2c
add test imported from treasure
11 years ago
Matias Alejo Garcia
921bc2ff17
add sorting of pubkeys for multisig addr generation
11 years ago
Manuel Araoz
30ba137914
fix old tests for sighash
11 years ago