Files
merkle.rs/tests
Frederic Jacobs 249234caca Adopting Hashable trait.
* Remove useless T: AsRef<[u8]> constraint in Lemma.

* Introduce a custom `Hashable` trait instead of requiring `AsRef<[u8]>`.

Since not every type can implement `AsRef<[u8]>`,
this commit removes that constraint, and requires instead
that values implement the `Hashable` trait.

A default instance is provided for types that already implements `AsRef<[u8]>`.

* Update documentation.

* Add a Protobuf test with custom struct and Hashable impl.
2016-12-20 10:23:07 +01:00
..
2016-12-20 10:23:07 +01:00