pub async fn import_public_key_raw(raw: Vec<u8>) -> Result<PublicKey, Error>Expand description
Import a raw 32-byte RFC 7748 u-coordinate as a public key.
Import is deliberately permissive, as the platform’s is: any
32-byte string is accepted (the high bit is masked at use, per RFC
7748), and degenerate keys — small-order points, non-canonical
encodings, points on the twist — are not rejected here. A
small-order key surfaces at agree as error.invalid-key (the
all-zero check); material of any other length fails
error.invalid-key at import.