Commit graph

566 commits

Author SHA1 Message Date
Chris Stewart
938e795d5a Merging in master, refactoring functions to CompactSizeUInt, adding BitcoinSUtilSpec, adding UInt64Spec 2016-06-20 14:28:38 -05:00
Chris Stewart
3cbf266a3f Adding symmetrical serialization specification for UInt32 2016-06-17 12:18:03 -05:00
Chris Stewart
9af5077701 Adding specification for boolean comparison functions in UInt32 2016-06-17 11:01:29 -05:00
Chris Stewart
c0ecfbfb6d Adding specification for multiplying two arbitrary UInt32s 2016-06-17 10:08:38 -05:00
Chris Stewart
34027e3ebc Adding property to check multiplying by 0 and multiplying by 1 in UInt32Specification 2016-06-16 20:57:29 -05:00
Chris Stewart
1541472f64 Redesigning the numbering system, adding support for parametizing our NumberOperations trait so it returns either a SignedNumber or an UnsignedNumber 2016-06-16 19:58:26 -05:00
Chris Stewart
92420a8c19 Merge pull request #15 from Christewart/blockchain_package_and_base_traits
Blockchain package and base traits
2016-06-16 15:22:49 -05:00
Chris Stewart
91419b5145 Adding scalacheck properties for creating UInt32s and adding UInt32s 2016-06-16 13:42:33 -05:00
Chris Stewart
31257996da Fixing minor styling issues & typos 2016-06-16 08:59:32 -05:00
Chris Stewart
50a59aef2c Adding BaseNumbers trait, start to implement addition 2016-06-15 21:28:47 -05:00
Chris Stewart
c7dc6dca77 Adding BaseNumbers to each Number factory 2016-06-15 15:55:54 -05:00
Chris Stewart
5afa3f3392 Creating Int64s, add test cases for the boundaries of Int64 2016-06-15 13:09:38 -05:00
Chris Stewart
4039b45f8a Can create the min and max for UInt64 & Int32 types 2016-06-15 08:56:20 -05:00
Chris Stewart
dc43676c59 Successfully computing UInt32 numbers all the way up to 4294967295 (max value for UInt32) 2016-06-14 19:45:23 -05:00
Chris Stewart
baea87d4c1 Cleaning up some issues in the codebase 2016-06-13 15:24:37 -05:00
Chris Stewart
e07a8de685 Fixing bug in block header serialization - nonce & nbits was not being padded correctly 2016-06-13 14:46:13 -05:00
Chris Stewart
82d7c937c8 Merge pull request #4 from TomMcCabe/block_serialization
Block serialization
2016-06-13 08:17:39 -05:00
Tom McCabe
f0a8eed77f fix bug involving endianess of txIds, fix all corresponding tests 2016-06-10 15:01:59 -05:00
Chris Stewart
225d828d01 Adding magicBytes field to NetworkParameters 2016-06-10 09:53:29 -05:00
Tom McCabe
9d0d0c3394 minor code alignment and rewording 2016-06-10 09:49:23 -05:00
Chris Stewart
7559ee02fd Adding function to calculate the compact size uint for a Seq[Byte] or hex string, fixing issue with serializing CompactSizeUInt's with size > 1 2016-06-09 13:42:40 -05:00
Tom McCabe
45afb86beb fix blockheader serializer so all values are big-endian 2016-06-09 10:19:55 -05:00
Tom McCabe
621195f785 fix endianness bug, and block/blockHeader serializer tests 2016-06-08 16:07:40 -05:00
Tom McCabe
de185743a5 fix chainparams to create genesis block, fix RawBlockSerializer bug with txCount CompactSizeUInt 2016-06-08 14:15:09 -05:00
Tom McCabe
1d28fb743f block header and block serializers working, tested for genesis block 2016-06-06 13:20:14 -05:00
Chris Stewart
9e61f5e989 Moving dnsSeeds to NetworkParameters 2016-06-06 11:08:10 -05:00
Chris Stewart
b37dbd1f65 Update README.md 2016-06-06 07:33:04 -05:00
Chris Stewart
227cfdbdb1 Refactoring all number conversion for script numbers into ScriptNumberUtil - this will be less confusing for what numbering systems certain functions are for 2016-06-05 20:30:35 -05:00
Chris Stewart
a7a7850966 Adding .toInt function inside of NumberUtil 2016-06-05 15:18:39 -05:00
Chris Stewart
c80be9e810 Adding base types for bitcoin's number system 2016-06-04 09:28:29 -05:00
Tom McCabe
20558a3a51 read and write block headers 2016-06-03 10:46:54 -05:00
Chris Stewart
6ae2e8bb75 Merging in master, removing apply functions from factories 2016-06-02 10:50:07 -05:00
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