Commit graph

886 commits

Author SHA1 Message Date
Chris Stewart
fecfe43d54 Adding MultiSignatureScriptPubKeySpec and serialization symmetry specificiation 2016-06-23 08:26:35 -05:00
Tom McCabe
697ddea97f remove commented code and optimize imports 2016-06-22 14:26:32 -05:00
Chris Stewart
024029e999 Adding companion objects for both P2PKScriptPubKey & P2PKHScriptPubKey, and their corresponding Specs 2016-06-22 14:24:18 -05:00
Chris Stewart
f2e73126f0 Adding MultiSignatureScriptSignature companion object, MultiSignatureScriptSignatureSpec & test for serialization symmetry 2016-06-22 13:43:51 -05:00
Tom McCabe
a09df87462 Merge branch 'master' into base58_json_tests 2016-06-22 10:11:39 -05:00
Tom McCabe
0c31a7fb87 read base58 valid/invalid tests, add function to base58 to determine validity 2016-06-22 10:07:28 -05:00
Chris Stewart
092d1abacf Fixing bug in isMultiSignature function, adding companion objects for P2PKHScriptSig & P2PKScriptSig, adding generators and specs for P2PKScriptSig 2016-06-22 10:07:27 -05:00
Chris Stewart
ff18fd7aac Adding TransactionOutPointSpec, testing serialization symmetry 2016-06-21 20:38:40 -05:00
Chris Stewart
13b76eb0d6 Refactoring mathematical operations inside of UInt32 and UInt64 2016-06-21 12:58:12 -05:00
Chris Stewart
ebe84a5f9b Finished implementing Int64Spec 2016-06-21 11:33:19 -05:00
Chris Stewart
c39f7ccd73 Finished spec for Int32 2016-06-21 10:37:24 -05:00
Chris Stewart
cbbf70b837 Refactoring encodeHex for numbers to encode numbers to ALWAYS have the maximum bytes in the number type. For instance a long will ALWAYS have 16 characters when encoded to hex 2016-06-21 09:53:03 -05:00
Chris Stewart
aa79650e9a Refactoring file/class names from 'Specification' to 'Spec' 2016-06-21 07:52:46 -05:00
Chris Stewart
bf38e0fa5b Adding comparison operator specifications for UInt64 2016-06-20 19:33:26 -05:00
Chris Stewart
17e7bb67c3 Adding multiplicative properties for UInt64 2016-06-20 18:58:12 -05:00
Chris Stewart
43dacf7354 Adding serialization symmetry & subtraction specification for UInt64 2016-06-20 17:04:00 -05:00
Tom McCabe
a3dc657f20 fix bug in Base58 encode function to now account for leading zeroes 2016-06-20 15:15:08 -05:00
Chris Stewart
938e795d5a Merging in master, refactoring functions to CompactSizeUInt, adding BitcoinSUtilSpec, adding UInt64Spec 2016-06-20 14:28:38 -05:00
Tom McCabe
e4893686f5 read and validate base58_keys_valid.json tests 2016-06-20 11:28:13 -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
Tom McCabe
2dfb704b43 Merge branch 'block_serialization' into base58_json_tests 2016-06-15 14:56:22 -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
Tom McCabe
bf6f9f3ecc encode private/public keys to base58 addresses, improve ECFactory.fromBase58ToPrivateKey to handle compressed bytes 2016-06-14 12:39:44 -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