Braydon Fuller
162438d111
Block: Change utility naming
10 years ago
Braydon Fuller
3276236cce
Consistent names for utilities
10 years ago
Braydon Fuller
94cc10b1a3
Changed *Json to *JSON and returned an object so that methods can be called from other toJSON methods without the double-stringification issue.
10 years ago
Braydon Fuller
7aaee6466f
Fix spacing formatting issues
10 years ago
Braydon Fuller
32ac9bb63e
Change utility naming
10 years ago
Braydon Fuller
1858766627
Standardized toJSON, fromJSON, toString and fromString interfaces
10 years ago
Braydon Fuller
77be24a52f
Bump
10 years ago
Braydon Fuller
6bb9990a2b
Opcode: JS-Beautify
10 years ago
Braydon Fuller
1b2e9728ce
Opcode: Modify from methods to be static, and an instance be immutable.
10 years ago
Braydon Fuller
c73c56f938
HDKeys: Modified to have immutable properties
10 years ago
Manuel Araoz
d3b761fc7c
Opcode('*').toNumber() -> Opcode.*
10 years ago
Manuel Araoz
bb8373ead7
remove script_interpreter for partial commit
10 years ago
Manuel Araoz
53f6a31e73
refactor script
10 years ago
Manuel Araoz
81f1469f9a
add preconditions to opcode
10 years ago
Manuel Araoz
f5b7f73d09
fixing tests for new script internals 2
10 years ago
Manuel Araoz
016bc6e3ed
fixing tests for new script internals
10 years ago
Manuel Araoz
898bdac05f
working towards script interpreting
10 years ago
Manuel Araoz
7ee9601d8a
starting with script_interpreter
10 years ago
Esteban Ordano
e1f1f4b6f6
Hotfix: Remove console.log
10 years ago
Braydon Fuller
5b0bedee6c
PrivateKey: Fixed documentation
10 years ago
Braydon Fuller
d4d3d4ab4a
PrivateKey: Add documentation and refactor to use network object as a parameter.
10 years ago
Yemel Jardi
9b6183b083
Improving code thanks to jshint
10 years ago
Yemel Jardi
ee169a80af
Replace buffertools
10 years ago
Braydon Fuller
56161676c3
Address: Change discoverMeta to classifyVersion and add a general address validation example
10 years ago
Yemel Jardi
c30f656540
Remove custom hex function at networks.js
10 years ago
Yemel Jardi
63022783dd
Add developer guide section
10 years ago
Esteban Ordano
ef49dda0fd
Move input to subfolder before refactor
Gonna inherit from it on two subclasses: "P2SH Input" and "P2PKH Input"
They'll have a `addSignature` method, to deal with new signatures,
a `clearSignatures`, in case the outputs change and the signatures get
invalidated, `countMissingSignatures`, and a reference to the UTXO
they'll be spending, so all logic regarding "p2sh mapping" gets to
be in here and the Transaction class is not polluted.
10 years ago
Braydon Fuller
3b061b057f
Address: Added documentation and refactored to accept both a string and network object.
10 years ago
Yemel Jardi
57968674ef
Add a better check on networkMaps
10 years ago
Yemel Jardi
228e7e214a
Add tests
10 years ago
Yemel Jardi
2d4b26a6a1
Add missing serializations
10 years ago
Yemel Jardi
56907c1a3b
Add missing argument
10 years ago
Yemel Jardi
9ce450c142
Remove old tests
10 years ago
Yemel Jardi
30740be5df
Remove old files
10 years ago
Yemel Jardi
8eca7285e0
Refactor and documentation
10 years ago
Yemel Jardi
5dc124a438
Add inheritance to messages and expose them as a module
10 years ago
Yemel Jardi
68f50b2f61
Add messages serialization
10 years ago
Yemel Jardi
a9e54a7856
Progress on sending and receiving messages
10 years ago
Yemel Jardi
a1e8f3c596
Add transport/peermanager class
10 years ago
Yemel Jardi
4faa1a4a46
Add transport/peer class
10 years ago
Yemel Jardi
f1d2009418
Add transport/connection class
10 years ago
Manuel Araoz
ec464681fe
add sorting to Script#buildMutlisigOut()
10 years ago
Esteban Ordano
1579eed9af
Consistency with "id", "hash", and "_getHash"
10 years ago
Esteban Ordano
0c28bc1786
Split buildPKH arguments, add Copy constructor on publickey
10 years ago
Esteban Ordano
5c974a8ef2
Refactor transaction to match new API
* Refactor transaction into a different subfolder
* Added a lot of tests for sighash and transaction serialization (from
reddit's and Ryan X. Charles' `fullnode`)
* Drop "only" from sighash tests and consolidate logs
10 years ago
Manuel Araoz
b61bd6f76a
add Script#isPushOnly()
10 years ago
Esteban Ordano
ea17a6ace1
Add a preconditions module, and refactor errors
100% code coverage for the preconditions module.
Usage:
```
$.checkState(something === anotherthing, 'Expected something to be
anotherthing');
$.checkArgument(something < 100, 'something', 'must be less than 100');
$.checkArgumentType(something, PrivateKey, 'something'); // The third
argument is a helper to mention the name of the argument
$.checkArgumentType(something, PrivateKey); // but it's optional (will
show up as "(unknown argument)")
```
10 years ago
Esteban Ordano
fd531de123
Update opcode and script transactions
10 years ago
Esteban Ordano
3551742fee
Miscelaneus updates to docs and bufferreader/writer
10 years ago
Esteban Ordano
1816ba197f
Add check functions to Address
10 years ago