Skip to content

Latest commit

 

History

History
55 lines (45 loc) · 2.7 KB

FAQ.md

File metadata and controls

55 lines (45 loc) · 2.7 KB

Frequently Asked Questions

I'm getting PolygonIdSdkNotInitializedException while calling PolygonIdSdk methods

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()

FetchGistProofException

  • 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)

Error adding claim

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.

PathNotFoundException (cannot open file, path = '*.dat')

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()

Supported devices