Commit Graph

392 Commits

Author SHA1 Message Date
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
Matt Corallo f859dc8b26 Expose VarInt's encoded length 2018-04-02 12:23:05 -04:00
Andrew Poelstra 050fd8ccd0
Merge pull request #68 from TheBlueMatt/master
Move witness inside of TxIn.
2018-04-02 16:21:54 +00:00
Matt Corallo a33f00621b Move witness inside of TxIn.
This is a rather large breaking API change, but is significantly
more sensible. In the "do not allow internal representation to
represent an invalid state" category, this ensures that witness
cannot have an length other than the number of inputs. Further,
it reduces vec propagation, which may help performance in some
cases by reducing allocs. Fianlly, this just makes more sense (tm).
Witness are a per-input field like the scriptSig, placing them
outside of the TxIn is just where they are serialized, not where
they logically belong.
2018-03-26 10:25:33 -04:00
Andrew Poelstra 0aa5cee39b
Merge pull request #66 from rust-bitcoin/0.12
bump to 0.12
2018-03-23 16:58:14 +00:00
Andrew Poelstra 85728d16a1 bump to 0.12 2018-03-23 15:27:56 +00:00
Andrew Poelstra cabac2354e
Merge pull request #64 from tamasblummer/address_socket
create Address message with SocketAddr, get SocketAddr from Address m…
2018-03-23 15:26:46 +00:00
Tamas Blummer ae708447a2 create Address message with SocketAddr, get SocketAddr from Address message. 2018-03-23 15:12:06 +01:00
Andrew Poelstra 15fd85b9d0
Merge pull request #63 from TheBlueMatt/master
Update fuzz target boilerplate to match rust-lightning
2018-03-22 01:47:06 +00:00
Matt Corallo 74cd941c83 Bump secp256k1 dep for older rustc 2018-03-21 18:44:10 -04:00
Matt Corallo 855b377d51 Fix crash in Address::from_str if input isn't long enough 2018-03-21 18:44:10 -04:00
Matt Corallo 8ae711ce0f Check-in fuzzing inputs for deserialize_script.
These were generated by running afl with AFL_EXIT_WHEN_DONE,
10 billion iterations in honggfuzz, and then minimizing with
afl-cmin.
2018-03-21 18:44:10 -04:00
Matt Corallo 298ba23876 Add address serialization round-trip fuzzer 2018-03-21 18:44:10 -04:00
Matt Corallo 73fca023ae Set travis to do 1,000,000 hfuzz steps 2018-03-21 18:44:10 -04:00
Matt Corallo 6826d8f35c Stub out Sha2 calls when fuzzing to mask all but the first byte 2018-03-21 18:44:10 -04:00
Matt Corallo d445eaa8c3 Update fuzzers to match rust-lightning boilerplate 2018-03-21 17:14:41 -04:00
Andrew Poelstra d3fda36ca6
Merge pull request #65 from rust-bitcoin/rustc-1.14
Rustc 1.14
2018-03-21 20:53:01 +00:00
Andrew Poelstra 22343fb023 Bump cargo version and travis to compile with 1.14 2018-03-21 20:38:15 +00:00
Andrew Poelstra 64987e349c minor nits to get compilation to work on rustc 1.14 (currently shipping Debian version) 2018-03-21 18:49:46 +00:00