Commit Graph

3360 Commits

Author SHA1 Message Date
Andrew Poelstra 6dc2ad86f0
Merge pull request #92 from rust-bitcoin/version-0.13.1
bump version to 0.13.1
2018-06-04 21:02:20 +00:00
Andrew Poelstra 2db9aeab2d bump version to 0.13.1 2018-06-04 19:29:59 +00:00
Andrew Poelstra 62d080afc7
Merge pull request #83 from tamasblummer/is_coinbase
add is_coin_base
2018-06-04 18:46:03 +00:00
Andrew Poelstra dd176b4177
Merge pull request #84 from popzxc/add-regtest
Added regtest network
2018-06-04 18:42:05 +00:00
Andrew Poelstra fb0c782df6
Merge pull request #89 from tamasblummer/wittness_block
add witness inv types
2018-06-04 18:34:28 +00:00
Andrew Poelstra 33261c7a12
Merge pull request #91 from TheBlueMatt/master
Check in fuzz inputs for all current targets
2018-06-04 18:32:19 +00:00
Andrew Poelstra eebd185a01
Merge pull request #90 from TheBlueMatt/merkle-expose
Expose merkleroot(Vec<Sha256dHash>) publicly
2018-06-04 18:15:35 +00:00
Matt Corallo 63765a2467 Check in good fuzzing starting points for current fuzz targets 2018-06-04 10:36:48 -04:00
Matt Corallo e2403a37fa Don't try to do a base58 checksum if an address is excessively long 2018-06-04 10:23:55 -04:00
Matt Corallo dab2f0b6b6 Switch fuzztarget SHA256 to simply XOR'ing all input bytes 2018-06-04 10:23:26 -04:00
Tamás Blummer 47b2364554
Merge branch 'master' into wittness_block 2018-06-04 04:24:51 +02:00
Matt Corallo b78ab0f60b Expose merkleroot(Vec<Sha256dHash>) publicly
In a project of mine I needed to check the merkle root before
moving some Vec<Transaction>s around, so need to be able to
calculate the merkle root on a Vec<Sha256dHash> directly.
2018-06-01 18:50:31 -04:00
Tamas Blummer 3921899c65 add is_coin_base
add data access as copy
2018-06-01 21:39:51 +02:00
Igor Aleksanov 97908ea058 Merge branch 'master' into add-regtest 2018-05-29 12:21:56 +03:00
Igor Aleksanov 34e228c699 Added regtest
Completed regtest integration to the code

Added tests for regtest

Get rid of panics
2018-05-29 12:21:41 +03:00
Igor Aleksanov 881972b2a5 Fix multiplication for uint256 (#88) 2018-05-28 20:41:07 +02:00
Tamas Blummer 9f2d737045 add witness inv types 2018-05-28 15:24:35 +02:00
Andrew Poelstra feec1cae70
Merge pull request #87 from petertodd/2018-05-remove-cargo-instructions
Remove cargo usage from README
2018-05-27 15:45:07 +00:00
Peter Todd 131ac3b1ac
Remove cargo usage from README
Everyone using rust can be expected to know how to do this, and besides,
the version was wrong. :)
2018-05-26 03:04:06 -04:00
Tamás Blummer ee65534a44
Merge pull request #85 from alekseysidorov/hotfix-network-from-str-err
Hotfix: replace serde error with the io error.
2018-05-24 16:06:14 +02:00
Tamás Blummer cf4024beb4
Merge branch 'master' into hotfix-network-from-str-err 2018-05-20 11:32:19 +02:00
Andrew Poelstra 6b1872e697
Merge pull request #81 from popzxc/data-method-in-impl-array-newtype
Added generation of `data` method in `impl_array_newtype` macro
2018-05-19 17:52:09 +00:00
Andrew Poelstra ab96df162a
Merge branch 'master' into data-method-in-impl-array-newtype 2018-05-19 17:29:53 +00:00
Aleksey Sidorov 5771841144 Replace serde error with the io error. 2018-05-18 12:08:11 +03:00
Tamás Blummer c1ff953b25
Merge pull request #80 from alekseysidorov/improve-network-constant
Implement `FromStr` for Network constant
2018-05-18 09:35:57 +02:00
Igor Aleksanov 13f1fe1f08
Merge branch 'master' into data-method-in-impl-array-newtype 2018-05-17 19:07:08 +03:00
Andrew Poelstra cc23f09b10
Merge branch 'master' into improve-network-constant 2018-05-17 15:00:35 +00:00
Andrew Poelstra 7ffd829e39
Merge pull request #82 from popzxc/impl-display-for-uint
Added `impl Display` to `construct_uint` macro
2018-05-17 14:58:44 +00:00
Igor Aleksanov 582afb1611 Added impl display for uint 2018-05-16 13:13:48 +03:00
Igor Aleksanov 539a74de12 Added test for Sha256dHash::data() 2018-05-16 12:44:30 +03:00
Igor Aleksanov 5df8893ea1 Macro impl_array_newtype now generates method for representing data as array 2018-05-16 12:34:36 +03:00
Aleksei Sidorov 3224cf2b18 Implement `FromStr` for Network constant 2018-05-16 12:22:07 +03:00
Matt Corallo 6f3c7e19dd
Merge pull request #77 from rust-bitcoin/cargo-toml-0.13
Bump version to 0.13
2018-04-16 20:23:06 -04:00
Andrew Poelstra fb96ef0d0b bump version to 0.13 2018-04-16 23:22:47 +00:00
Andrew Poelstra 155ff1f26e update README for 0.13 2018-04-16 23:19:49 +00:00
Matt Corallo 33c33c9dde
Merge pull request #73 from rust-bitcoin/minor-stuff
add fuzzer output to gitignore; remove ancient secp build instructions from Travis
2018-04-16 18:33:26 -04:00
Andrew Poelstra c1f024779f hfuzz: separate _workspace and _input directories, add workspace to .gitignore 2018-04-16 21:42:09 +00:00
Andrew Poelstra 335035447d remove ancient secp build instructions from Travis 2018-04-16 21:42:09 +00:00
Matt Corallo 49d7538452 Fix travis-fuzz upgrade handling 2018-04-16 21:42:09 +00:00
Matt Corallo 0c10cb127e Merge pull request #75 from romanz/patch-2
Update documentation URL in Cargo.toml
2018-04-16 17:01:33 -04:00
Matt Corallo bbadb64fb5
Merge pull request #74 from romanz/master
block: fix a small typo in comment
2018-04-16 16:05:41 -04:00
Roman Zeyde 64bc5ede0e
Update documentation URL in Cargo.toml 2018-04-11 22:13:43 +03:00
Roman Zeyde 44d0ad90e9
block: fix a small typo in comment 2018-04-11 12:23:15 +03:00
Matt Corallo d759a267a0
Merge pull request #71 from TheBlueMatt/master
Correct consensus verify args, fix tests to catch error in travis
2018-04-09 12:38:51 -04:00
Matt Corallo 8aa6253a3b Correct consensus verify args, fix tests to catch error in travis 2018-04-02 15:38:43 -04:00
Matt Corallo bfe889904a Fix whitespace (s/\t/ /g) 2018-04-02 14:58:25 -04:00
Matt Corallo bcf57e69df
Merge pull request #70 from TheBlueMatt/2018-03-bip143-ref-ergonomics
Only provide the required TxIn to bip143 sighash_all
2018-04-02 13:04:09 -04:00
Matt Corallo 0e1d927b47 Only provide the required TxIn to bip143 sighash_all.
This resolves an very unergonomic API by allowing iteration over a
Transaction being signed's inputs without needing to take a
conflicting reference to the transaction.

The API is still relateively unsafe in that its very easy to
generate bogus sighashes with it, but this is much better than it
was, and its not clear how to fix it further.
2018-04-02 12:42:59 -04:00
Andrew Poelstra 157d0312c4
Merge pull request #69 from TheBlueMatt/2018-03-tx-weight
Add a Transaction.get_weight() method, check it in fuzzing
2018-04-02 16:41:54 +00:00
Matt Corallo 3793b2859a Add a Transaction.get_weight() method, check it in fuzzing 2018-04-02 12:23:05 -04:00