Daniel Cousens
74e53b49a5
Script/Transaction: remove untested functions
These functions are not under test, and are unnecessary bloat due to a
confusing API.
Script.from*(asmStr) were two functions that attempted to parse ASM
codes and produce a script from this.
While useful, an parser can be introduced later under a single function
and under test... removed.
Although Script.extractPublicKeys implementation is likely to be correct,
it is not absolute in that what it returns is even strictly a set of
public keys.
It is a useful function, but can be done in a better way later,
probably checking against the Script templates instead.
Transaction.signWithKeys has some inherent undocumented behaviour, and it is not
clear when you would use it over just Transaction.addOutput and
Transaction.sign individually. Nor does it mimic anything in the
bitcoind API... removed.
11 years ago
Daniel Cousens
1d1306b054
Removes Address.fromPubKey and improves test vectors
11 years ago
Daniel Cousens
eae613d244
Adds error messages and better version checking
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
a4c2cc6dd4
Removes pointless error utility function
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
lms
98aeb47c6f
cleaned up address.js
11 years ago
Daniel Cousens
b40374e332
Changes to new version-less ECKey API
11 years ago
Wei Lu
3d6b66e811
move convert methods from util to convert
11 years ago
Wei Lu
a281a5ab53
migrate crypto-js to 3.1.2
11 years ago
Kyle Drake
fdc78dad2e
merge weilu's changes
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
eaf84c4283
move address versions into network
Also change address type name:
address_types -> addressVersion
p2sh_types -> p2shVersion
prod -> mainnet
11 years ago
Michael Gooden
b8215dea60
Add testnet support to Address and ECKey, more tests.
Signed-off-by: Michael Gooden <me@michaelgooden.net>
11 years ago
Andreas Brekken
bf6254d3e2
Trailing whitespace
11 years ago
Vitalik Buterin
7919c8cfc5
Added auto-instantiators to classes
11 years ago
vub
335d0dcd96
bugfix
11 years ago
vub
f53a4e3ffa
Added sign with keys method to transaction and did lots of small cleanups
11 years ago
vub
b41a4ecb91
Fixed address object creation bug
12 years ago
vub
e43d23235b
Added some transaction methods, and removed all internal use of base64
12 years ago
vub
9922864da4
Added deserialization, made some modifications
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
Stefan Thomas
09e8c6e184
Added comments.
13 years ago
Stefan Thomas
1a7fc9d063
Fixed indents.
13 years ago
Stefan Thomas
8b32d43335
Moved sources into src/ subdirectory.
14 years ago
Stefan Thomas
a4de03af4d
Make the version byte a parameter.
14 years ago
Stefan Thomas
c0d740d2d4
Initial import
14 years ago