Commit Graph

411 Commits

Author SHA1 Message Date
Matt Corallo dee10b9389
Merge pull request #89 from TheBlueMatt/master
Sync fuzztarget combine with tweak_add since real functions do that
2019-01-09 10:30:38 -05:00
Pierre Krieger fba7dfbda2 Fix cargo warning output and wrong pointer width (#88)
Fix cargo warning output and wrong pointer width

Co-Authored-By: tomaka <pierre.krieger1708@gmail.com>
2019-01-09 13:15:28 +01:00
Matt Corallo a74cbb6781 Sync fuzztarget combine with tweak_add since real functions do that
Some new fuzz tests I was writing ended up failing because two
nodes came up with different keys because adding public keys and
adding a tweak to a private key and multiplying by the generator
should get the same thing.
2019-01-08 16:12:40 -05:00
Matt Corallo 4f44a0f3bc
Merge pull request #87 from tomaka/rm-libc
Remove dependency on libc
2018-12-27 11:55:24 -05:00
Pierre Krieger 9c45944a5f
Remove dependency on libc 2018-12-27 14:39:54 +01:00
Matt Corallo 7d7085c304
Merge pull request #85 from TheBlueMatt/2018-12-fuck-rust-ecosystem
Fix cc dep as the rust ecosystem is terrible
2018-12-19 15:56:59 -05:00
Matt Corallo 34aadb72d4 Fix cc dep as the rust ecosystem is terrible 2018-12-19 15:25:47 -05:00
Tim Ruffing a7b2302e38
Merge pull request #84 from rust-bitcoin/travis-multi-os
Enable windows builds on travis
2018-12-07 23:37:37 +01:00
Tim Ruffing 9a4961c823 Disable travis build on rust 1.14 on windows 2018-12-07 22:37:21 +01:00
Tim Ruffing 28c7881643 Build C with debug information also on MSVC 2018-12-07 22:18:22 +01:00
Tim Ruffing bbbc63713e Add window target to travis 2018-12-07 22:18:00 +01:00
Tim Ruffing 56b538099f
Merge pull request #83 from rust-bitcoin/2018-12-0.12
bump version to 0.12
2018-12-03 15:15:04 +01:00
Andrew Poelstra 05885975ab bump version to 0.12 2018-12-03 13:54:17 +00:00
Tim Ruffing b470f70e90
Merge pull request #57 from rust-bitcoin/2018-08-no-index
remove `ops::Index` impls for `Signature`
2018-12-03 14:27:08 +01:00
Tim Ruffing cc6d379b29
Merge pull request #51 from rust-bitcoin/2018-08-message
Various slice-handling ergonomic improvements
2018-12-03 14:07:24 +01:00
Andrew Poelstra e5a02bd9a0 add `ThirtyTwoByteHash` hash trait which can be implemented for easier conversion of things to `Message`s 2018-11-10 13:12:10 +00:00
Andrew Poelstra 1f4a4c11a3 change add_*_assign and mul_*_assign to use a byteslice as a tweak, rather than a `SecretKey`
This makes more conceptual sense and does not add any new error paths, since even
valid `SecretKey`s were able to be invalid tweaks.
2018-11-10 13:08:18 +00:00
Andrew Poelstra f93b959b4a disallow Messages that are not valid secret keys to prevent mistakes related to 0 2018-11-10 13:05:11 +00:00
Andrew Poelstra 8d2347602a remove `ops::Index` impls for `Signature` 2018-11-10 12:56:19 +00:00
Andrew Poelstra 7fbaf2f91b remove unsafe ZERO_KEY and deprecated ONE 2018-11-10 12:56:19 +00:00
Andrew Poelstra 4b88cfc2fc
Merge pull request #78 from rust-bitcoin/2018-11-remove-without-caps
Update upstream libsecp; remove `without_caps` and all use of dummy contexts
2018-11-10 12:51:14 +00:00
Andrew Poelstra ef9bd562df
Merge pull request #80 from rust-bitcoin/2018-11-0.11.5
export `serde`, `rand` and `libc`; update version to 0.11.5
2018-11-09 18:05:06 +00:00
Andrew Poelstra 8986aa3d71 export `serde`, `rand` and `libc`; update version to 0.11.5 2018-11-07 20:18:55 +00:00
Andrew Poelstra 223eb41fd0 remove context object from ECDH 2018-11-06 22:16:24 +00:00
Andrew Poelstra 93abca5896 remove `without_caps` and every function that used a cap-less context 2018-11-06 22:16:24 +00:00
Andrew Poelstra 4653100b7a update upstream libsecp256k1 to 314a61d72474aa29ff4afba8472553ad91d88e9d 2018-11-06 22:16:13 +00:00
Andrew Poelstra ca08c4f338
Merge pull request #77 from rust-bitcoin/2018-11-0.11.4
Increase version to 0.11.4
2018-11-06 21:09:37 +00:00
Andrew Poelstra 4819c5aabd bump version to 0.11.4 2018-11-06 20:38:09 +00:00
Andrew Poelstra 724192e081
Merge pull request #60 from rust-bitcoin/2018-08-fromstr
add `FromStr` implementation for key types
2018-11-04 13:09:22 +00:00
Andrew Poelstra 0b1640f2ae
Merge pull request #61 from rust-bitcoin/2018-08-windows-fix
fix build.rs on Windows
2018-11-04 13:09:10 +00:00
Andrew Poelstra 68c838f357 change `Debug` impl for `Signature` to use `Display` 2018-11-03 15:52:07 +00:00
Andrew Poelstra 30aa3a0c28 add `fmt::Display` and `str::FromStr` impls for `Signature` 2018-11-03 15:52:05 +00:00
Andrew Poelstra 572adb2873 add `FromStr` implementation for key types 2018-11-03 15:52:03 +00:00
Andrew Poelstra f528135104 fix build.rs on Windows 2018-10-28 15:15:40 +00:00
Andrew Poelstra dc2cd97196
Merge pull request #72 from rust-bitcoin/2018-09-0.11.3
bump version to 0.11.3
2018-10-28 14:44:41 +00:00
Andrew Poelstra f5e3e17be6 bump version to 0.11.3 2018-09-21 17:14:19 +00:00
Andrew Poelstra d41fc90972
Merge pull request #66 from rust-bitcoin/2018-09-docs-fix
attempt to fix docs.rs docs
2018-09-14 15:15:00 +00:00
Andrew Poelstra 6354f08264
Merge pull request #69 from rust-bitcoin/2018-09-0.11.2
bump version to 0.11.2
2018-09-11 18:46:43 +00:00
Andrew Poelstra 4298438aaa bump version to 0.11.2 2018-09-11 18:06:30 +00:00
Andrew Poelstra d1e449a14b attempt to fix docs.rs docs 2018-09-04 14:28:15 +00:00
Andrew Poelstra 0fe06e9b64
Merge pull request #64 from mpapierski/63-big-endian
Use correct flag on big endian machines.
2018-08-31 16:07:50 +00:00
Michał Papierski 3b86de9b0f Use correct flag on big endian machines.
This will fix `tests::sign` test case on mips/mips64. Verified with
`cross`[1] tool.

    cross test --target mips-unknown-linux-gnu
    cross test --target mips64el-unknown-linux-gnuabi64

Unfortunately this fix doesn't make `tests::test_debug_output` test case
pass, but this is about debug output so its not as critical as this
patch. See #63 for a discussion.

[1]: https://github.com/japaric/rust-cross
2018-08-31 10:29:00 +02:00
Andrew Poelstra 2f8855f8fd
Merge pull request #56 from rust-bitcoin/2018-08-return-pubkey-combine
Revert "remove PublicKey::combine"
2018-08-22 21:16:33 +00:00
Andrew Poelstra 6f025a36a5 bump version to 0.11.1 2018-08-22 20:43:20 +00:00
Andrew Poelstra a810880c54 restore missing `mem` import in key.rs 2018-08-22 20:43:20 +00:00
Andrew Poelstra 0d41c23c21 Revert "remove PublicKey::combine"
This reverts commit 17450e91fd.
2018-08-22 20:18:25 +00:00
Andrew Poelstra 15655e543d
Merge pull request #55 from rust-bitcoin/2018-08-0.11
Update version to 0.11
2018-08-22 19:01:38 +00:00
Andrew Poelstra ce91fa0f38 bump version to 0.11 2018-08-22 16:40:05 +00:00
Andrew Poelstra c773dfbc8d remove unused import that was causing warning 2018-08-22 16:40:05 +00:00
Andrew Poelstra aa050325da
Merge pull request #42 from rust-bitcoin/2018-07-64bit
switch to 64-bit compilation; add flag for 32-bit
2018-08-22 16:38:08 +00:00