IronCoreLabs / recrypt-rs

A set of cryptographic primitives for building a multi-hop Proxy Re-encryption scheme, known as Transform Encryption.
https://crates.io/crates/recrypt
GNU Affero General Public License v3.0
144 stars 23 forks source link

Use try_from to avoid having to import Signature #163

Closed clintfred closed 2 years ago

clintfred commented 2 years ago

Removes an unnecessary use statement and instead uses the TryFrom implementation to create a signature from bytes. The use statement was reintroduced to fix compilation errors for some combinations of dependencies introduced in v0.13.0, but the TryFrom approach has the same effect with no compiler warning.