raw property

  1. @override
Uint8List get raw
override

Returns the key's raw bytes

Implementation

@override
Uint8List get raw {
  if (_privateKeyBytes != null) {
    return Uint8List.fromList(_privateKeyBytes!);
  }

  // If we don't have the private key bytes, we need to extract them
  // This is a limitation of the cryptography package
  throw UnimplementedError(
    'Cannot get raw bytes of private key. The cryptography package does not '
    'provide access to the private key bytes after key generation.'
  );
}