Skip to content
Snippets Groups Projects
Commit 28b2a6d8 authored by Éloïs's avatar Éloïs
Browse files

[enh] Signature is Hashable

parent efc127dd
No related branches found
No related tags found
1 merge request!44Resolve "crypto : Add Hash trait to Signature"
[package] [package]
name = "duniter-crypto" name = "duniter-crypto"
version = "0.1.1" version = "0.1.2"
authors = ["nanocryk <nanocryk@duniter.org>"] authors = ["nanocryk <nanocryk@duniter.org>"]
description = "Manage cryptographic building blocks for the Duniter project." description = "Manage cryptographic building blocks for the Duniter project."
repository = "https://git.duniter.org/nodes/rust/duniter-rs" repository = "https://git.duniter.org/nodes/rust/duniter-rs"
......
...@@ -75,7 +75,7 @@ pub enum BaseConvertionError { ...@@ -75,7 +75,7 @@ pub enum BaseConvertionError {
/// ///
/// [`PrivateKey`]: trait.PrivateKey.html /// [`PrivateKey`]: trait.PrivateKey.html
/// [`PublicKey`]: trait.PublicKey.html /// [`PublicKey`]: trait.PublicKey.html
pub trait Signature: Clone + Display + Debug + PartialEq + Eq { pub trait Signature: Clone + Display + Debug + PartialEq + Eq + Hash {
/// Create a `Signature` from a Base64 string. /// Create a `Signature` from a Base64 string.
/// ///
/// The Base64 string should contains only valid Base64 characters /// The Base64 string should contains only valid Base64 characters
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment