fromPem static method
Parses a PEM string into a public key.
Throws if pem is not a single PUBLIC KEY block holding an X-Wing
public key. The block starts at the first byte, uses strict base64 and
ends all its lines in LF or all in CRLF.
Implementation
static PublicKey fromPem(String pem) =>
PublicKey._(ffi.XhpkePublicKey.fromPem(pem: pem));