PolygonIdSdkNotInitializedException
while callingPolygonIdSdk
methodsFetchGistProofException
- Error adding claim
- PathNotFoundException (cannot open file, path = '*.dat')
- Supported devices
before you can use the sdk's methods, you must initialise it
await PolygonIdSdk.init(env: EnvEntity());
after which you can use it by invoking its instance
PolygonIdSdk.I.identity.addIdentity()
- Check that the circuits files have been downloaded correctly using the method:
bool downloaded = await PolygonIdSdk.I.proof.isAlreadyDownloadedCircuitsFromServer();
-
Check the correctness of your
idStateContract
of the EnvEntity you passed on SDK initialization -
Check that the
web3ApiKey
of the EnvEntity you passed on SDK initialization is up and running at your web3 service provider (e.g. infura)
the most common error regarding error adding claim
is to use an identity of one network
over a service provider of another network, for example, I have created an identity using the mumbai
network of the polygon
blockchain, but I am trying to authenticate with an issuer using the main
network.
Check your DID
and compare it with the DID
of the service provider you want to connect to.
This error occurs when the circuits required for creating the 'proof' have not been downloaded.
- First check that your app has the necessary permissions to access, read and write to local storage.
- Check that the circuits files have been downloaded correctly using the method:
bool downloaded = await PolygonIdSdk.I.proof.isAlreadyDownloadedCircuitsFromServer();
- If not yet downloaded, download them using the
download circuits
method of the SDK
PolygonIdSdk.I.proof.initCircuitsDownloadAndGetInfoStream()
- iOS: only the devices with
iphone-ipad-minimum-performance-a12
are supported, list of devices available at this link: https://developer.apple.com/support/required-device-capabilities - Android: only the devices with architecture
arm64-v8a
andx86_64
are supported, and a minimum21 (Lollipop 5.0)
api version of Android