Commit graph

684 commits

Author SHA1 Message Date
Thomas McCabe
095e252be7 Merge pull request #13 from Christewart/add_apply_functions_to_factory
Moving apply(bytes) & apply(hex) into the Factory trait
2016-06-02 09:31:56 -05:00
Chris Stewart
0bb5bd8704 Moving apply(bytes) & apply(hex) into the Factory trait 2016-06-01 20:32:09 -05:00
Thomas McCabe
df8ed817b8 Merge pull request #12 from Christewart/refactor_ec_factory
Refactor ec factory
2016-06-01 16:39:34 -05:00
Thomas McCabe
464c644681 Merge pull request #11 from Christewart/rm_bitcoinj_from_src
Remove bitcoinj as source dependency
2016-06-01 15:39:11 -05:00
Chris Stewart
c3fd4c2f31 Refactoring test cases to not use ECFactory anymore 2016-05-31 11:17:24 -05:00
Chris Stewart
406aa10f04 Removing tests inside ECFactory to their corresponding elliptic curve type, refactoring test cases to use ECPrivateKey.fromBase58ToPrivateKey 2016-05-31 10:43:37 -05:00
Chris Stewart
5dda92ae69 Done refactoring .fromHex & .fromBytes functions into companion objects for ECPrivKey, ECPubKey, & ECDigitalSig 2016-05-31 10:16:28 -05:00
Chris Stewart
440d1b4086 Merging changes from master 2016-05-31 09:01:04 -05:00
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
Chris Stewart
cd26c70631 Addign merkleRoot function to Blocks 2016-05-27 18:06:46 -05:00
Chris Stewart
d38764745d Merkle root computation is implemented 2016-05-27 10:30:13 -05:00
Chris Stewart
ba8e5bd0ae Merge branch 'master' into blockchain_package_and_base_traits 2016-05-26 15:58:20 -05:00
Chris Stewart
e1a3b2dc9f Fixed merge conflicts 2016-05-26 15:55:17 -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
1a108c8cc3 Successfully computing merkle root for trees with n nodes where n is a power of 2 2016-05-26 15:32:36 -05:00
Chris Stewart
4ecae82a6e Generating correct txid for the genesis transaction 2016-05-26 12:11:00 -05:00
Chris Stewart
fa25c33fec Merging in master 2016-05-26 09:51:17 -05:00
Chris Stewart
e5b45cf3ff Creating Merkle trait, successfully creating script signature found in the genesis block 2016-05-26 09:51:17 -05:00
Chris Stewart
59c1968271 Moving CompactUIntImpl into factory, adding NetworkElement trait to Block/BlockHeader to allow for easy access to hex/byte representations 2016-05-26 09:51:17 -05:00
Chris Stewart
ec5e2b85c3 Adding ChainParams & the respective ChainParams object for each network 2016-05-26 09:51:17 -05:00
Chris Stewart
4e34bd050f Adding parent trait for individual blockchains called ChainParams 2016-05-26 09:48:56 -05:00
Chris Stewart
7dc449abca Adding RawBlockSerializer that is currently unimplemented 2016-05-26 09:48:56 -05:00
Chris Stewart
bbf8005916 Adding an unimplmeneted serializer for BlockHeaders 2016-05-26 09:48:56 -05:00
Chris Stewart
d959d5cf1a Adding trait to represent blocks in our blockchain 2016-05-26 09:48:55 -05:00
Chris Stewart
fc46ee85c5 Adding blockchain package, adding trait to represent block headers 2016-05-26 09:48:55 -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
133877d9f2 Moving CompactUIntImpl into factory, adding NetworkElement trait to Block/BlockHeader to allow for easy access to hex/byte representations 2016-05-24 09:53:39 -05:00
Chris Stewart
43bdbeb2e3 Merge branch 'master' into blockchain_package_and_base_traits 2016-05-24 09:29:58 -05:00
Chris Stewart
8305cc651c Renaming TransactionElement to NetworkElement 2016-05-24 09:22:26 -05:00
Chris Stewart
a3b8278045 Adding ChainParams & the respective ChainParams object for each network 2016-05-23 15:32:10 -05:00
Chris Stewart
db50658823 Adding parent trait for individual blockchains called ChainParams 2016-05-22 12:32:52 -05:00
Chris Stewart
a2cf7d7b81 Merge branch 'master' into blockchain_package_and_base_traits 2016-05-22 11:00:47 -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