Commit graph

217 commits

Author SHA1 Message Date
Chris Stewart
0c29c8cfda Add invariant that doesn't allow segwit scripts to be created with uncompressed public keys
reset scalafmt for rpc/

Removing unit test that used uncompressed public key for P2WSH, removing extra debug
2018-07-22 14:10:01 -05:00
nkohen
5389d9187f cleanup of ScriptSignature in tests 2018-06-25 09:56:37 -05:00
nkohen
0a8c52562e Made BitcoinFeeUnit extend FeeUnit and SatoshisPerByte, SatoshisPerVirutalByte extend BitcoinFeeUnit 2018-06-06 13:45:26 -05:00
Chris Stewart
2cd44c0f07 refactor hash type to derive the byte from the underlying int32, refactor some other things to make hash type nicer 2018-06-01 13:04:41 -05:00
Nadav Kohen
6368642d09 Added sequence parameter to coinbase and removed fruitless type test 2018-05-31 10:57:36 -05:00
Chris Stewart
7e951e8ca9 Merge pull request #167 from TannerR1776/master
Move maxPublicKeysPerMultiSig to Consensus
2018-05-31 11:44:46 -04:00
Tanner Rogers
bfd4cb72f5 Move maxPublicKeysPerMultiSig to Consensus 2018-05-31 06:22:30 -05:00
Chris Stewart
876bb69e6a overflow bug fix didn't quite account for every overflow possibility 2018-05-29 11:47:34 -05:00
Chris Stewart
9cc2bb1695 Fix overflow bug with parsing script with OP_PUSHDATA4 2018-05-28 19:47:56 -05:00
Nadav Kohen
f6cdd3b312 Made HashDigest extend NetworkElement 2018-05-25 10:03:15 -05: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
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
6775817478 Adding AddressFactory.fromStringExn to throw the exception instead of returning a Try 2018-05-11 09:00:51 -05: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
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
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