junderw
dc1ef5958b
Tests to arrow functions, use strict asserts, travis uses docker instead of regtest server
6 years ago
junderw
bc28949056
Commit js, ts, and definitions in separate folders
6 years ago
junderw
d684a6b2ef
Fix compiler errors, tests, and scripts
6 years ago
Daniel Cousens
16195cc6ce
explicitly import mocha variables
7 years ago
Daniel Cousens
a5db0a4e44
sed -i 's/ var / const /', with const->let fixes
7 years ago
Daniel Cousens
93b1ae4303
sed -i 's/^let /const /'
7 years ago
Daniel Cousens
d934e543d8
rm Litecoin
7 years ago
Dave Kerr
504b6c24bc
fix failing address test by error-thrown assertion
7 years ago
Daniel Cousens
b1272a1200
add Bech32 support to toOutputScript/fromOutputScript
8 years ago
Daniel Cousens
d1052e4996
add from/toBech32
8 years ago
Daniel Cousens
f1ab151c31
tests: use safe-buffers throughout
8 years ago
Thomas Kerin
27b48e8aa2
Add methods to decode information from output scripts
8 years ago
Daniel Cousens
67da1b30e3
address: fix compiled assumption for fromOutputScript
9 years ago
Daniel Cousens
6ec687deba
rename scripts to script
10 years ago
Daniel Cousens
18e9cdcc02
rename Address to address
10 years ago
Daniel Cousens
e2abe2b3af
merge Script/scripts
10 years ago
Daniel Cousens
e05f8a542d
remove Script object
10 years ago
Daniel Cousens
e743c58ed6
remove usage of instanced Scripts
10 years ago
Daniel Cousens
fd7f0b0ef8
address: use input first errors, easier detection
10 years ago
Daniel Cousens
f5d99d8f8a
address: remove network detection
10 years ago
Daniel Cousens
13f414c122
remove Address constructor
10 years ago
Daniel Cousens
ec9cea0cf1
tests: use strictEqual always
10 years ago
Daniel Cousens
399803affa
use standardjs formatting
10 years ago
Daniel Cousens
7fbc397141
Address: use script ASM over hex
10 years ago
Daniel Cousens
7e5af52cd1
Transaction: mass rename from SPK/SS to Input/Output
I think it is important we maintain some reasoning that an Input script
is actually a script signature, but in the end, these names are more
coherent and understandable when reasoning with our code. So I think
its OK we break tradition with bitcoind.
11 years ago
Daniel Cousens
00cec9ce64
Script: move all templates to templates.js
11 years ago
Daniel Cousens
943621f466
Address/HDNode: fix test descriptions
11 years ago
Daniel Cousens
2fc69b0834
address/base58check: fix missing exceptions/tests
All the `invalid2` tests have been removed as they were not invalid
base58check. They were actually valid in some cases.
They will be re-integrated in more specific bitcoin core tests in
relation to Address/ECKey respectively.
11 years ago
Daniel Cousens
8514bbfabd
Address: remove Address.Error
By removing Address.Error, we remove a code smell.
This part of the code base was also not under any form of test.
Test data and tests have therefore been added verifying its behaviour in
both Wallet and Address tests.
11 years ago
Daniel Cousens
b2351f9026
tests: use JSON fixtures exclusively
11 years ago
Daniel Cousens
54cc123d31
Address/Script: consistent function ordering
11 years ago
Daniel Cousens
6c0eebe94b
tests: use filepaths directly
After a long IRC discussion, it was decided that the use of direct
filepaths instead of the module is a more pure form of testing ,
although it may provide less overall coverage than the mixed integration
style imports used previously.
This will need to be remedied by further integration testing in
/test/integration.
11 years ago
Daniel Cousens
5e0d38ba54
Address: add Address.*ScriptPubKey and tests
The introduction of these two functions allow for the all the network
related code to be eventually removed from Transaction and Script.
Previously the result for non-standard transactions was undefined
behaviour. This change mandates that an exception is thrown if a
non-standard transaction is input.
11 years ago
Daniel Cousens
231ccdd721
Now shares base58 data with Address base58 tests
11 years ago
Daniel Cousens
12a5b75cbe
Address now properly checks malformed base58
11 years ago
Daniel Cousens
1d1306b054
Removes Address.fromPubKey and improves test vectors
11 years ago
Daniel Cousens
682ec133bb
Migrates Address to stricter API subset
11 years ago
Daniel Cousens
f047afef2d
Updates network.js constant names
11 years ago
Daniel Cousens
6fa0c07763
Changes existing code to use new base58 API
11 years ago
Wei Lu
93fe1b4c78
cosmetic standardization
[closes #56 ]
11 years ago
Kyle Drake
a6706ea8be
fix spacing
11 years ago
Kyle Drake
09925cff5a
cleanup throw tests, add case for bad input
11 years ago
Kyle Drake
fdc78dad2e
merge weilu's changes
11 years ago
Wei Lu
2f3e597596
reorganize address tests #50
11 years ago
xnova
786198f130
* Fixes address.js to be able to deal with testnet P2SH addresses
* Enhanced address.js testsuite...now also verifies address versions
* Enhances README to show how to run test suite
11 years ago
Wei Lu
02b3a2b564
HDWallet prod -> mainnet
11 years ago
Andreas Brekken
f591cc0111
Reformat all tests for more modern mocha syntax (describe, it)
11 years ago
Roman Shtylman
e94636ef25
fix test require so browserify works for testling
12 years ago
Roman Shtylman
0faac29134
start to split into node commonjs style modules
- no longer is the global Bitcoin used for modules
- cleaner and more maintainable code
- add more tests
12 years ago