diff --git a/parity-crypto/CHANGELOG.md b/parity-crypto/CHANGELOG.md index 14290d54d..08cd46532 100644 --- a/parity-crypto/CHANGELOG.md +++ b/parity-crypto/CHANGELOG.md @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog]. ## [Unreleased] +## [0.6.1] - 2020-04-11 +- Add `recover_allowing_all_zero_message()` and `ZeroesAllowedMessage` to accomodate ethereum's `ecrecover` builtin. [#369](https://github.com/paritytech/parity-common/pull/369) + ## [0.6.0] - 2020-03-16 - License changed from GPL3 to dual MIT/Apache2. [#342](https://github.com/paritytech/parity-common/pull/342) - Updated dependencies. [#361](https://github.com/paritytech/parity-common/pull/361) diff --git a/parity-crypto/Cargo.toml b/parity-crypto/Cargo.toml index 763fc4b74..1b1944ad3 100644 --- a/parity-crypto/Cargo.toml +++ b/parity-crypto/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "parity-crypto" -version = "0.6.0" +version = "0.6.1" authors = ["Parity Technologies "] repository = "https://github.com/paritytech/parity-common" description = "Crypto utils used by ethstore and network." diff --git a/parity-crypto/src/publickey/mod.rs b/parity-crypto/src/publickey/mod.rs index 53dd12209..54d3ffe79 100644 --- a/parity-crypto/src/publickey/mod.rs +++ b/parity-crypto/src/publickey/mod.rs @@ -44,7 +44,7 @@ use secp256k1::ThirtyTwoByteHash; /// converted to a `[u8; 32]` which in turn can be cast to a /// `secp256k1::Message` by the `ThirtyTwoByteHash` and satisfy the API for /// `recover()`. -pub struct ZeroesAllowedMessage(H256); +pub struct ZeroesAllowedMessage(pub H256); impl ThirtyTwoByteHash for ZeroesAllowedMessage { fn into_32(self) -> [u8; 32] { self.0.to_fixed_bytes()