Fixed cargo doc generation.
This commit is contained in:
@@ -27,7 +27,7 @@ pub fn check_block_signature(block: &Block) -> bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Hashes some identity (domain in case of DNS). If you give it a public key, it will hash with it as well.
|
/// Hashes some identity (domain in case of DNS). If you give it a public key, it will hash with it as well.
|
||||||
/// Giving public key is needed to create a confirmation field in [Transaction]
|
/// Giving public key is needed to create a confirmation field in [Transaction](crate::blockchain::Transaction)
|
||||||
pub fn hash_identity(identity: &str, key: Option<&Bytes>) -> Bytes {
|
pub fn hash_identity(identity: &str, key: Option<&Bytes>) -> Bytes {
|
||||||
let base = hash_sha256(identity.as_bytes());
|
let base = hash_sha256(identity.as_bytes());
|
||||||
let identity = hash_sha256(&base);
|
let identity = hash_sha256(&base);
|
||||||
|
|||||||
Reference in New Issue
Block a user