fromDer static method
Parses a DER buffer into a private key.
Throws if der is not a PKCS #8 v1 encoded X-Wing private key, or if
bytes follow it.
Implementation
static SecretKey fromDer(Uint8List der) =>
SecretKey._(ffi.XhpkeSecretKey.fromDer(der: der));