readData static method
Implementation
static Future<List<Object>> readData() async {
if ((await SecureStore.readSecureData("pubKey") == null) ||
(await SecureStore.readSecureData("privKey") == null) ||
(await SecureStore.readSecureData("delegation") == null)) {
return [false];
} else {
String pubKey = await SecureStore.readSecureData("pubKey");
String privKey = await SecureStore.readSecureData("privKey");
String delegation = await SecureStore.readSecureData("delegation");
var validatedDelegationValues =
await DelegationValidation.validateDelegation(
pubKey, privKey, delegation);
log("Validated Values, $validatedDelegationValues");
return validatedDelegationValues;
}
}