fromBytes static method

PublicKey fromBytes(
  1. Uint8List bytes
)

Parses a 264-byte array into a public key.

Format: n (256 bytes) || e (8 bytes), all in big-endian.

Implementation

static PublicKey fromBytes(Uint8List bytes) =>
    PublicKey._(ffi.RsaPublicKey.fromBytes(bytes: bytes));