Commit Graph

254 Commits

Author SHA1 Message Date
Matt Corallo 5a7c88b9c7 Add fuzztarget feature that replaces crypto with memcpys 2018-03-20 11:58:59 -04:00
Matt Corallo 7b396112fd Correct ptr type in ffi 2018-03-19 15:49:16 -04:00
Matt Corallo 6a9f8ba375 Fix README links 2018-03-18 14:45:38 -04:00
Andrew Poelstra e08ddbc613 update github links in Cargo.toml, bump version number to republish 2018-03-05 19:42:39 +00:00
Andrew Poelstra c03d5ab819 Change documentation link, increment version so I can republish 2018-02-25 22:51:16 +00:00
Andrew Poelstra 6d4f64f901 fix potential unsafety bug for non-u8 types in macros
We don't have any non-u8 newtypes but better safe than sorry. See
https://github.com/apoelstra/rust-bitcoin/pull/45/
2018-02-14 16:25:45 +00:00
Andrew Poelstra f14e747431 expose key::{Secret, Public}Key in the crate root for ease of use 2018-01-17 15:38:11 +00:00
Andrew Poelstra 06137aefda
Merge pull request #20 from apoelstra/2combine
expose 2-key version of PublicKey::combine
2017-12-22 17:46:39 +00:00
Andrew Poelstra 2c5f45e165 expose 2-key version of PublicKey::combine 2017-12-21 01:04:07 +00:00
Andrew Poelstra 37f3107894
Merge pull request #19 from apoelstra/optional-deps
Make a bunch of dependencies optional, increase major version number
2017-12-19 23:22:04 +00:00
Andrew Poelstra fa7dc40254 rename gcc::Config to gcc::Build 2017-12-19 22:40:24 +00:00
Andrew Poelstra 5c54698bf9 make `serde` optional 2017-12-19 22:40:06 +00:00
Andrew Poelstra 12e9f4b90b make `rustc-serialize` crate optional 2017-12-19 22:36:30 +00:00
Andrew Poelstra 298929600b make `rand` crate optional 2017-12-19 22:36:27 +00:00
Andrew Poelstra dba0d67912 remove arrayvec dependency; rename PublicKey::serialize_vec 2017-12-19 20:36:46 +00:00
Andrew Poelstra d0dc0f89d8 Merge pull request #18 from real-or-random/patch-1
Implement serde traits for Signature
2017-07-26 15:38:33 +00:00
Tim Ruffing b4a41a8ed2 Bump version to 0.7.1 2017-07-22 00:06:40 +02:00
Tim Ruffing e71ed3b6d2 Implement serde traits for Signature 2017-07-21 23:58:19 +02:00
Andrew Poelstra 18ac2d6080 Merge pull request #17 from real-or-random/patch-1
Update serde to 1.0
2017-07-21 20:30:59 +00:00
Tim Ruffing a400e1678e Bump version to 0.7.0 for serde update 2017-07-21 22:22:55 +02:00
Tim Ruffing b1d8b09f25 Add tests for trailing bytes during deserilization 2017-07-21 22:21:37 +02:00
Tim Ruffing 76d160344b Update serde to 1.0 2017-07-21 22:15:00 +02:00
Andrew Poelstra e69fedb35a Merge pull request #16 from apoelstra/compact-sig
add compact signature encoding
2017-07-12 20:06:53 +00:00
Andrew Poelstra b6887b44a0
add compact signature encoding 2017-07-12 19:55:06 +00:00
Andrew Poelstra c1951d6025
Update to 0.6.2 for git bs 2017-05-08 13:53:58 +00:00
Andrew Poelstra 5a5048d544 Bump version to 0.6.1 for new PT changes 2017-05-08 13:53:34 +00:00
Andrew Poelstra f88eb1d6d7 Merge pull request #14 from petertodd/2017-05-08-use-copy_from_slice
Use safe copy_from_slice() rather than unsafe copy_nonoverlapping()
2017-05-08 12:53:19 +00:00
Peter Todd 20c5b903db
Replace unsafe copy_nonoverlapping() with safe copy_from_slice() 2017-05-08 07:31:08 -04:00
Andrew Poelstra bba4527af0 Merge pull request #13 from petertodd/2017-05-08-from-impl-for-message
Implement From<[u8;32]> for Message
2017-05-08 11:21:10 +00:00
Peter Todd eccd625828
Implement From<[u8;32]> for Message 2017-05-08 07:10:51 -04:00
Andrew Poelstra 70f54e1dea Merge pull request #12 from petertodd/2017-05-08-error-comment
Improve Error::InvalidMessage comment
2017-05-08 10:17:26 +00:00
Peter Todd 70fd5a9e27
Improve Error::InvalidMessage comment 2017-05-08 06:12:25 -04:00
Andrew Poelstra ab72e8da42 Merge pull request #11 from chritchens/master
Use DefaultHasher in place of the deprecated SipHasher
2017-04-27 21:13:59 +00:00
Christian Nyumbayire ab0493e46a Use DefaultHasher in place of the deprecated SipHasher 2017-04-27 21:46:28 +02:00
Andrew Poelstra f272b8345f Increase libc to 0.2
Annoyingly, this is a major version bump since we expose libc types in the FFI module
2016-10-10 13:12:12 +00:00
Andrew Poelstra 5b906ec069 expose *_tweak_mul functions 2016-08-20 17:00:39 +00:00
Andrew Poelstra 9e3b93d572 Add ZERO_KEY and ONE_KEY constants
Turns out you cannot initialize constant SecretKeys in any way; these
two constants should cover most sane use cases (other good choices
are the SECG generator and the Alpha CT generator, but these will
wait for a major CT-supporting upgrade, unless demand for them appears.)
2016-08-07 21:33:38 +00:00
Andrew Poelstra fe811b37b2 Add some `--` to travis-cargo to separate cargo opts from travis-cargo ones 2016-05-30 15:59:44 +00:00
Andrew Poelstra 458a3d9417 Update libsecp to latest master, c18b869e58aa4d3bff6958f370f6b643d1223c44 2016-01-14 18:35:54 +00:00
Dawid Ciężarkiewicz 16b36f18e1 key: Add PubKey hashing test. 2016-01-08 20:04:10 -08:00
Dawid Ciężarkiewicz 6686c213dd Implement Hash for PublicKey. 2016-01-05 21:01:40 -08:00
Andrew Poelstra cfde1f9925 Add missing schnorr.rs 2015-12-20 13:47:53 -06:00
Andrew Poelstra 4f83a83308 cleanup: remove unused attributes; add `dev` compile feature that'll run clippy 2015-12-19 20:20:47 -06:00
Andrew Poelstra d45d026901 Bump minor version number for addition of Schnorr functionality 2015-12-15 12:49:57 -06:00
Andrew Poelstra f613dbbc00 Fix nonce doccoments 2015-12-15 12:48:01 -06:00
Andrew Poelstra 8aa2569818 Expose Schnorr sign/verify 2015-12-15 12:47:07 -06:00
Andrew Poelstra 9a91b69fad Remove side-effect from assertion; add release build to travis 2015-11-18 18:22:16 -06:00
Andrew Poelstra d35168d626 [BREAKING CHANGE] Fix FFI 2015-11-15 17:00:07 -06:00
Andrew Poelstra 54632bf789 Bump minor version number
We had added a necessary include directory to build.rs but not updated the
library on crates.io, so dependencies of rust-secp were failing to build.
(However, on my local system I had secp installed in /usr/local/include,
so I did not notice the problem until Travis pointed it out on a different
project!)
2015-11-08 15:11:15 -06:00
Andrew Poelstra 2df3c0b37c Minor changes for problems `cargo clippy` found 2015-10-28 07:48:28 -05:00