pub fn encode(point: &ProjectivePoint) -> Vec<u8>Expand description
Encode an SM2 public point as a DER SubjectPublicKeyInfo blob.
Caller pre-validates that point is on-curve and not at
infinity. (The standard accessor
crate::sm2::Sm2PublicKey::to_sec1_uncompressed feeds this
helper after extracting the affine (x, y).)
ยงPanics
Panics if point is at infinity (callers must reject the
identity point at the boundary).