Esteban Ordano
de4d2884c7
Modify Transaction to use Multisig
* Allow `Script#add` to add a Script causing concatenation of opcodes
* Add `Script#equals` to compare scripts
* Add `Script#fromAddress`
* Drop `_payTo` methods
* Add `Script.buildP2SHMultisigIn`
Greatly simplifying the internal transaction object
10 years ago
Esteban Ordano
1535805f1c
Add PublicKeyHashInput class
10 years ago
Esteban Ordano
af43228daf
Add `PublicKeyHashInput` and `ScriptHashInput`.
Remove `_outpoints`, `_utxos` from Transaction, as that info
can be efficiently retrieved from the inputs
10 years ago
Braydon Fuller
96c7812ed1
PrivateKey: Lodash to check if undefined, and made tests not random (T2)
10 years ago
Braydon Fuller
b13c4fb0c9
Added inspect prototype G5
10 years ago
Braydon Fuller
920f25b58e
Tests: Added bitcoind base58 key data and tests
10 years ago
Braydon Fuller
6f6d568661
Transaction: toNumber/fromNumber to set satoshis
10 years ago
Braydon Fuller
ad4bc9324f
Transaction: Use Script toString for transaction JSON output
10 years ago
Braydon Fuller
b544b0594d
Added test to check that Transaction fromJSON could initialize from toJSON, and fixed a bug.
10 years ago
Braydon Fuller
f43c2f9aa3
Fixed bug, toObject should use other object's toObject
10 years ago
Braydon Fuller
dee30c749a
Unit: Fixed bug, stringified toJSON output
10 years ago
Braydon Fuller
e4cf84519d
BN: Remove toJSON and fromJSON methods from BN, as they are equivalent to toString and fromString
10 years ago
Braydon Fuller
002eb3dcf5
Transaction: Added toObject method and changed toJSON to return a string
10 years ago
Braydon Fuller
cddd55afc4
URI/Unit: Added toObject method and changed toJSON to return a string
10 years ago
Braydon Fuller
c0bbf96dc1
Keys: Added toObject method and changed toJSON to return a string
10 years ago
Braydon Fuller
1c0caac8c3
HDKeys: Added toObject method and changed toJSON to return a string
10 years ago
Braydon Fuller
19a17017a9
Block: Added toObject method and changed toJSON to return a string
10 years ago
Braydon Fuller
354c03987a
Address: Added toObject method and changed toJSON to return a string
10 years ago
Braydon Fuller
0e7f5e89f2
Fixed issue with js util naming
10 years ago
Braydon Fuller
46a9a6d83c
Opcode: Added toBuffer and fromBuffer methods
10 years ago
Braydon Fuller
4ddf3d117c
Keys: Modified and added standardized toJSON/fromJSON prototypes
10 years ago
Braydon Fuller
93502d1523
Fix naming
10 years ago
Braydon Fuller
683ac93c0b
Fix utility naming issue
10 years ago
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