fromDer static method

PublicKey fromDer(
  1. Uint8List der
)

Parses a DER buffer into a public key.

Throws if der is not a SubjectPublicKeyInfo encoded xDSA public key, or if bytes follow it.

Implementation

static PublicKey fromDer(Uint8List der) =>
    PublicKey._(ffi.XdsaPublicKey.fromDer(der: der));