Commit graph

502 commits

Author SHA1 Message Date
Chris Stewart
81f2cf3ba2 Fixing issue where we have the wrong version of ScriptSignature in our tree 2016-05-31 08:39:03 -05:00
Chris Stewart
40929aa5bf merging with master 2016-05-30 16:53:15 -05:00
Chris Stewart
9f0a30f9c7 Adding more unit tests check bitcoin-s against bitcoinj 2016-05-30 16:28:39 -05:00
Tom McCabe
f0d614a639 add BigInt type to wildcard, and adjust decode function format 2016-05-30 16:28:39 -05:00
Tom McCabe
b918986d81 Base58 commits:
iterate through base58 characters into bytes, and vice versa, encode/decode test pass

encode/decode sequence of bytes, and strings

merged branch base58 with master branch, address tests fail, need base58decodecheck

base58 encode/decode bitcoin and asset addresses

fixed fromBase58toPrivateKey in ECFactory

fixed encoding/decoding base58 private keys

fix some camel casing

fix Try cases for decodeCheck functions

make base58 encode immutable by removing StringBuilder
2016-05-30 16:28:39 -05:00
Chris Stewart
afccd5c095 Fixing issue with key signing in BaseECKey 2016-05-30 15:56:26 -05:00
Chris Stewart
88c53ac163 Fixing timeout bug in BaseECKey.sign 2016-05-30 15:56:26 -05:00
Chris Stewart
24f4a0fd30 Fixing various test cases 2016-05-30 15:56:26 -05:00
Chris Stewart
190c1f153e Implementing ECFactory.digitalSignature for creating digital signatures from r,s components 2016-05-30 15:46:08 -05:00
Chris Stewart
ddecb2c05f Fixing compilation issues, not all tests are passing yet 2016-05-30 15:43:34 -05:00
Chris Stewart
5f1ea05d63 Partially done removing bitcoinj from src folder 2016-05-30 15:43:03 -05:00
Thomas McCabe
83ca998961 Merge pull request #10 from Christewart/remove_asm_arg_script_types
Remove asm arg script types, refactor script types into their companion objects
2016-05-26 15:37:31 -05:00
Chris Stewart
27895b01ff Changing asm from function to lazy val in both ScriptSignature & ScriptPubKey 2016-05-25 15:20:43 -05:00
Chris Stewart
77c46dd8b1 Refactoring ScriptPubKey's into the ScriptPubKey companion object and removing the 'asm' parameter from the case classes 2016-05-25 14:43:46 -05:00
Chris Stewart
05755fa799 Finished refactoring ScriptSignatures - script signature case classes no longer take an 'asm' parameter 2016-05-25 14:30:27 -05:00
Chris Stewart
48b104670d Fixing bug in ScriptInterpreter - bitcoin core requires that p2sh scriptSignatures be push only 2016-05-25 14:01:21 -05:00
Chris Stewart
7f36f83364 Update README.md 2016-05-25 07:53:33 -05:00
Thomas McCabe
9282bd1156 Merge pull request #9 from Christewart/create_hash_types
Create hash types
2016-05-24 13:29:06 -05:00
Thomas McCabe
112607199c Merge pull request #8 from Christewart/master
Renaming TransactionElement to NetworkElement
2016-05-24 13:23:19 -05:00
Chris Stewart
a46600418a Adding HashDigest types, refactoring all Crypto hash functions to return their corresponding HashDigest type 2016-05-24 12:30:44 -05:00
Chris Stewart
8305cc651c Renaming TransactionElement to NetworkElement 2016-05-24 09:22:26 -05:00
Chris Stewart
b0b493e95f Merge branch 'master' of https://github.com/bitcoin-s/bitcoin-s-core 2016-05-22 10:59:00 -05:00
Chris Stewart
d82ced8a83 Adding port numbers for NetworkParameters 2016-05-22 10:57:53 -05:00
Thomas McCabe
a67c5f9164 Merge pull request #7 from Christewart/master
Removing OP_NOP3 since it has been repurposed for OP_CHECKSEQUENCEVERIFY
2016-05-21 12:02:14 -05:00
Chris Stewart
5ca1c18076 Update README.md 2016-05-21 08:23:12 -05:00
Chris Stewart
59ed11dc8a Removing OP_NOP3 since it has been repurposed for OP_CHECKSEQUENCEVERIFY 2016-05-20 11:43:11 -05:00
Thomas McCabe
940ec1f4ad Merge pull request #6 from Christewart/rename_marshallers_to_serializers
Rename marshallers to serializers
2016-05-19 14:36:43 -05:00
Chris Stewart
43029bf9fe Removing objects/functions that are being refactored into the rpc-client package 2016-05-19 13:22:38 -05:00
Chris Stewart
a14160a67a Changing the name of 'marshallers' package to 'serializers', renaming a few classes 2016-05-19 11:22:38 -05:00
Thomas McCabe
0644302ff8 Merge pull request #5 from Christewart/refactor_to_core_package
Refactoring project into 'core' package
2016-05-19 10:34:01 -05:00
Chris Stewart
112fc125cd Refactoring project into 'core' package 2016-05-19 10:04:36 -05:00
Thomas McCabe
1b2abfee26 Merge pull request #4 from Christewart/tx_tests_invalid
Tx tests invalid
2016-05-17 09:06:53 -05:00
Chris Stewart
8977125dc7 Finished fixing codebase for behavior indicated by tx_invalid.json 2016-05-16 13:18:44 -05:00
Chris Stewart
7eee82554d Fixing bug in OP_CHECKMULTSIG - now verifying that stack element is a NULLDUMMY 2016-05-16 08:37:45 -05:00
Thomas McCabe
99fc7ba471 Merge pull request #3 from Christewart/tx_tests
Bitcoin-s-core passes all tx_valid.json
2016-05-15 20:21:40 -05:00
Chris Stewart
20871d3439 Refactoring test cases for tx_invalid.json to account for the fact that only one input needs to be invalid to make the tx invalid 2016-05-15 18:36:17 -05:00
Chris Stewart
f6c50cbfb9 Implementing checks inside of CheckTransaction() for coinbase txs 2016-05-15 11:09:46 -05:00
Chris Stewart
c03e8abf18 Creating CoinbaseInput algebraic data type which represents a input for a coinbase transaction 2016-05-14 17:15:42 -05:00
Chris Stewart
3a04467f32 Fixing some comments inside of ScriptInterpreter 2016-05-14 13:38:42 -05:00
Chris Stewart
60404e733e Implemented CheckTransaction() from bitcoin core 2016-05-13 20:53:00 -05:00
Chris Stewart
1538a3b61f Removing prior implementation of ScriptInterpreter.run 2016-05-13 14:18:41 -05:00
Chris Stewart
48e22e0fd7 Refactoring control flow inside of ScriptInterpreter - loop() now has its own function and cleaned up flow for handling different types of scriptPubKeys 2016-05-13 12:50:48 -05:00
Chris Stewart
811d15af81 Adding test case for tx_invalid.json, fixing bug with parsign -1 satoshis in our RawTransactionOutputParser 2016-05-13 08:50:08 -05:00
Chris Stewart
574f593dcb Fixing merge conflict 2016-05-12 19:47:29 -05:00
Chris Stewart
73c92af290 Merge branch 'master' of https://github.com/bitcoin-s/bitcoin-s-core 2016-05-12 19:35:21 -05:00
Chris Stewart
ca2f1c3423 Finished implementing tx_valid.json from bitcoin core 2016-05-12 16:08:13 -05:00
Chris Stewart
bf26c5f9c6 Fixing bug in reading in non-symmetric sequence numbers for inputs 2016-05-12 15:55:58 -05:00
Chris Stewart
6574bbf76c Fixing bug in OP_CLTV for interpreting stack top as script number 2016-05-12 13:38:26 -05:00
Chris Stewart
8a7249a656 Fixing bug with removing signatures from p2sh redeem scripts 2016-05-12 12:49:49 -05:00
Chris Stewart
ef35eb9270 Through the OP_CODESEPARATOR tests now in tx_valid.json 2016-05-12 08:54:28 -05:00