Commit Graph

1229 Commits

Author SHA1 Message Date
Chris Stewart
dbf078a5b0 Merge pull request #162 from Christewart/refactor_txsigcomponent_output
Refactor txsigcomponent output
2018-05-22 08:14:35 -04:00
Chris Stewart
8716378cc1 Refactoring TransactionSignatureSerializer to only take TxSigCompnents
Cleaning up nits
2018-05-22 06:00:53 -05:00
Chris Stewart
32f64e0dd9 Changing TxSigComponent to take a TransactionOutput instead of a ScriptPubKey, refactoring ScriptProgram into 3 companion objects PreExecutionScriptProgram, ExecutionInProgressScriptProgram, ExecutedScriptProgram 2018-05-19 09:25:32 -05:00
Chris Stewart
c0df8a0976 Merge pull request #161 from Christewart/fix_nversion_blockheader_tx
Changing Transaction, BlockHeader version type from UInt32 -> Int32 t…
2018-05-16 09:58:38 -04:00
Chris Stewart
40d53bb7b3 Changing Transaction, BlockHeader version type from UInt32 -> Int32 to reflect what the bitcoin protocol actually is 2018-05-16 09:13:31 -04:00
Chris Stewart
00408a3b0a Merge pull request #160 from Christewart/address_factory_tostring
Adding AddressFactory.fromStringExn to throw the exception instead of…
2018-05-11 10:54:35 -04:00
Chris Stewart
6775817478 Adding AddressFactory.fromStringExn to throw the exception instead of returning a Try 2018-05-11 09:00:51 -05:00
Chris Stewart
20365baeb2 Merge pull request #159 from Christewart/address_factory_tostring
Address Factory
2018-05-10 11:54:17 -04:00
Chris Stewart
9d834a69d0 :# This is a combination of 2 commits.
Create AddressFactory interface for creating addresses, adding toString method to print address string

Adding isValid to AddressFactory
2018-05-10 10:27:56 -05:00
Chris Stewart
d7d2a22ba8 Merge pull request #157 from Christewart/tx_builder_add_unsigned_tx_field
Exposing the TxBuilder.unsignedTx field -- this gives developers acce…
2018-05-04 16:59:42 -04:00
Chris Stewart
dffa92c801 Exposing the TxBuilder.unsignedTx field -- this gives developers access to building a tx with a TxBuilder, but allows them to sign the tx out of band 2018-05-03 19:10:50 -05:00
Chris Stewart
2b55204eed Merge pull request #156 from dwhjames/topic/multi-module-build
Refactor multi-module build
2018-05-02 17:05:09 -04:00
Daniel James
0309675528 Refactor multi-module build
- separate Java source copied from libsecp256k1 into separate module
- split main module into core core-gen core-test
  - generators can be published separated to core code for use in
    3rd-party tests
- code coverage needs to be aggregated
2018-05-02 16:18:01 -04:00
Chris Stewart
2a39b9a326 Merge pull request #155 from Christewart/zmq_fix_test
Making sure ZMQSubscriberTest compiles
2018-05-01 09:51:56 -04:00
Chris Stewart
f56be7e499 Making sure ZMQSubscriberTest compiles 2018-05-01 08:49:04 -05:00
Chris Stewart
8975dc7ac2 Merge pull request #154 from Christewart/zmq_threading
Zmq threading
2018-05-01 09:25:07 -04:00
Noah Cornwell
4665f0543e Make it compile 2018-04-30 17:24:20 -04:00
Noah Cornwell
294ed10361 POC for threading model in ZMQ subscriber 2018-04-30 17:24:19 -04:00
Chris Stewart
7698f95725 Merge pull request #153 from Christewart/zmq
Adding more logging around zmq connection
2018-04-27 10:27:05 -04:00
Chris Stewart
d4bef008e5 Adding more logging around zmq connection 2018-04-27 08:54:42 -05:00
Chris Stewart
d4fc39f938 Merge pull request #151 from Christewart/zmq
Zmq
2018-04-26 11:13:53 -04:00
Chris Stewart
a085743287 Merge pull request #152 from Christewart/fix_secp256k1_submodule
Adding specific commit for secp256k1
2018-04-26 11:09:44 -04:00
Chris Stewart
5054c23320 Adding specific commit for secp256k1
updating secp256k1 submodule to bitcoin-s repo link
2018-04-25 16:44:48 -05:00
Chris Stewart
11e365a511 Init for zmq, successfully parsing blocks from bitcoind
MVP working for zmq notifications

removing logging, making block header generators less likely to fail

subscribing earlier in zmq life cycle

refactoring some zmq stuff to remove excess Futures

Adding error condition to processMsg loop

changing error message in processMsg loop

refactoring ZMQSubscriber api to just take in Seq[Byte] functions

cleaning up nits, adding documentation, list shortcomings of current iteration
2018-04-25 10:29:59 -05:00
Chris Stewart
7afca25337 Merge pull request #150 from Christewart/add_funding_info
Adding 'FundingInfo' abstract class to pair together unsignedTxs and …
2018-04-24 11:07:46 -04:00
Chris Stewart
9e149e9efb Adding 'FundingInfo' abstract class to pair together unsignedTxs and the utxos used to fund them
rename 'unsignedTx' -> 'transaction' in FundingInfo trait
2018-04-24 09:43:22 -05:00
Chris Stewart
4e938065f2 Merge pull request #149 from Christewart/add_hashdigest_endianness_flip
Adding helper function to flip hash's endianness, adding helper funct…
2018-04-20 11:19:33 -04:00
Chris Stewart
02e1c67d9e Adding helper function to flip hash's endianness, adding helper functions to access big endian encodings of block hashes, tx hashes etc 2018-04-20 09:57:34 -05:00
Chris Stewart
f8fa45624e Merge pull request #148 from Christewart/reduce_logging_in_scalacheck
reduce logging in scalacheck
2018-04-20 10:30:16 -04:00
Chris Stewart
194aaf0faa reduce logging in scalacheck 2018-04-19 20:06:03 -04:00
Chris Stewart
6e0c705699 Merge pull request #147 from Christewart/dummy_sign
Adding dummy sign method inside of Sign
2018-04-18 09:11:56 -04:00
Chris Stewart
9bece40d46 Adding dummy sign method inside of Sign 2018-04-18 07:44:58 -05:00
Chris Stewart
375bb02d1c Merge pull request #146 from Christewart/sign_api_non_opt_pubkey
Refactoring Sign api to force the publicKey to be included
2018-04-17 13:17:19 -04:00
Chris Stewart
21dbe1fe8b Refactoring Sign api to force the publicKey to be included 2018-04-17 11:47:56 -05:00
Chris Stewart
7a9f73ed8d Merge pull request #145 from okayplanet/master
README typo correction
2018-04-17 11:56:43 -04:00
okayplanet
18a548a5f3 README typo correction 2018-04-14 19:41:32 -07:00
Chris Stewart
d8a1e5edc9 Merge pull request #144 from Christewart/bump_scalatest_v
bumping scalacheck version, fixing bug in CryptoGenerators.privateKey…
2018-04-11 16:29:44 -04:00
Chris Stewart
611609a11b bumping scalacheck version, fixing bug in CryptoGenerators.privateKeySeqWithRequiredSigs that could error if a negative number was passed in 2018-04-11 16:25:35 -04:00
Chris Stewart
ba3f5dcd13 Merge pull request #138 from Christewart/refactor_tx_builder_future
Refactor tx builder future
2018-04-11 11:03:47 -04:00
Chris Stewart
b691cd041e refactoring the execution context stuff in Signer, ECPrivateKey, ECPublicKey 2018-04-08 09:32:06 -05:00
Chris Stewart
ac323fb165 Refactor TxBuilder api to return a Future rather than a Either
removing superflous utxoMap in EscrowTimeoutHelper

Refactoring TxBuilder api to return a Future[Transaction] rather than a Either[Transaction, TxBuilderError

Removing TxBuilderSpec type aliases
2018-04-08 09:32:06 -05:00
Chris Stewart
24af345146 Merge pull request #143 from Christewart/ec_pubkey_compress_decompress
Ec pubkey compress decompress
2018-04-05 13:25:27 -04:00
Chris Stewart
4e7ff58b0c Adding funcitonality in ECPublicKey to return the decompressed version of the pubkey 2018-04-05 11:57:22 -05:00
Chris Stewart
583d2eb5ff Merge pull request #142 from Christewart/address_fromBase58
Adding  functions into all address types
2018-04-05 12:56:33 -04:00
Chris Stewart
5ee167e60d Merge pull request #141 from Christewart/interpreter_run_verify
Add runVerify, runAll, and runAllVerify helper methods in ScriptInter…
2018-04-05 11:59:42 -04:00
Chris Stewart
d4eea28d72 Adding functions into all address types
Adding fromString into Address object
2018-04-05 10:50:39 -05:00
Chris Stewart
9c93c58954 Add runVerify, runAll, and runAllVerify helper methods in ScriptInterpreter
Fixing bug in ScriptInterpreter.runAllVerify
2018-04-05 09:27:48 -05:00
Chris Stewart
743820cf8a Merge pull request #140 from Christewart/compressed_pubkey_segwit_bug
Fixing bug where we were enforcing ScriptErrorWitnessTypePubKey on no…
2018-04-03 20:29:38 -04:00
Chris Stewart
84aa8678e7 Fixing bug where we were enforcing ScriptErrorWitnessTypePubKey on non segwit public keys 2018-04-03 16:38:56 -05:00
Chris Stewart
8cd3f7b207 Merge pull request #137 from Christewart/add_Script_fromAsmBytes
Creating 'fromAsmBytes' and 'fromAsmHex' in ScriptFactory
2018-03-29 10:04:19 -04:00