pub fn for_discovery_key(public_key: PublicKey) -> Self {
        let mut hasher = Blake2b::with_key(32, public_key.as_bytes());
        hasher.update(&HYPERCORE);
        Self {
            hash: hasher.finalize(),
        }
    }
/// Hash a public key. Useful to find the key you're looking for on a public
/// network without leaking the key itself.
Hash a public key. Useful to find the key you're looking for on a public
network without leaking the key itself.
Hash a public key . Useful to find the key you ' re looking for on a public network without leaking the key itself .
pub fn for_discovery_key(public_key: PublicKey) -> Self {
        let mut hasher = Blake2b::with_key(32, public_key.as_bytes());
        hasher.update(&HYPERCORE);
        Self {
            hash: hasher.finalize(),
        }
    }
pub fn for_discovery_key ( public_key : PublicKey ) -> Self { let mut hasher = Blake2b :: with_key ( 32 , public_key . as_bytes ( ) ) ; hasher . update ( & HYPERCORE ) ; Self { hash : hasher . finalize ( ) , } }
Hash a public key.
Hash a public key .
public_key
PublicKey