currentDataOwnerKeys method

Future<Map<String, Map<KeypairFingerprintV1String, Uint8List>>> currentDataOwnerKeys(
  1. String sdkId,
  2. bool filterTrustedKeys
)

Implementation

Future<Map<String, Map<KeypairFingerprintV1String, Uint8List>>> currentDataOwnerKeys(String sdkId, bool filterTrustedKeys) async {
	final res = await _methodChannel.invokeMethod<String>(
		'CryptoApi.currentDataOwnerKeys',
		{
			"sdkId": sdkId,
			"filterTrustedKeys": jsonEncode(filterTrustedKeys),
		}
	);
	if (res == null) throw AssertionError("received null result from platform method currentDataOwnerKeys");
	final parsedResJson = jsonDecode(res);
	return (parsedResJson as Map<String, dynamic>).map((k1, v1) => MapEntry((k1 as String), (v1 as Map<String, dynamic>).map((k2, v2) => MapEntry((k2 as KeypairFingerprintV1String), base64Decode(v2 as String)))));
}