Return Value
A Data containing the input PEM bytes in UTF-8. Suitable for publishing, fingerprinting (e.g. via hash(data:)), and cross-process transport.
Mentioned In
Discussion
Public-key PEM is not secret and may be logged, published in .well-known/jwks.json endpoints, or embedded in TLS certificate pinning lists. The bytes returned here are the UTF-8 encoding of the original input string verbatim — no re-serialization is performed, which preserves vendor annotations and whitespace around the SPKI frame.
Note
Because this is the literal input, two PublicKey instances representing the same underlying key but parsed from differently-formatted PEM strings will produce different pemData values. If you need canonical equality, normalize by round-tripping through a DER decoder first — a future release will provide a canonical accessor.