Skip to content
Snippets Groups Projects

Resolve "protocol : add DocumentHasher Trait"

Merged Éloïs requested to merge 46-protocol-add-documenthasher-trait into dev

Files

@@ -195,6 +195,13 @@ impl StandardTextDocumentParser for IdentityDocumentParser {
@@ -195,6 +195,13 @@ impl StandardTextDocumentParser for IdentityDocumentParser {
}
}
}
}
 
/*impl DocumentHasher<A, IdentityDocument> for IdentityDocument
 
where A : HashAlgorithm {
 
fn hash_str(algo: A, document: IdentityDocument) -> String {
 
algo.hash_str(document.as_text())
 
}
 
}*/
 
#[cfg(test)]
#[cfg(test)]
mod tests {
mod tests {
use super::*;
use super::*;
Loading