mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 10:26:29 +03:00
Add documentation
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
//! Cryptographic key module.
|
||||
|
||||
#![allow(missing_docs)]
|
||||
|
||||
use std::collections::BTreeMap;
|
||||
use std::fmt;
|
||||
use std::io::Cursor;
|
||||
@@ -332,6 +330,7 @@ pub async fn store_self_keypair(
|
||||
pub struct Fingerprint(Vec<u8>);
|
||||
|
||||
impl Fingerprint {
|
||||
/// Creates new 160-bit (20 bytes) fingerprint.
|
||||
pub fn new(v: Vec<u8>) -> Fingerprint {
|
||||
debug_assert_eq!(v.len(), 20);
|
||||
Fingerprint(v)
|
||||
|
||||
Reference in New Issue
Block a user