is_valid_ed25519_public_key

Function is_valid_ed25519_public_key 

Source
pub fn is_valid_ed25519_public_key(pk: &PublicKey) -> bool
Expand description

Return true if pk’s bytes decode to a valid Ed25519 compressed public-key point on the curve. Used by the MAC layer and CLI to reject malformed peer keys before they can poison the peer registry.