fromDer static method
Parses a DER buffer into a public key.
Throws if der is not a SubjectPublicKeyInfo encoded X-Wing public key,
or if bytes follow it.
Implementation
static PublicKey fromDer(Uint8List der) =>
PublicKey._(ffi.XhpkePublicKey.fromDer(der: der));