microsoft / entra-verifiedid-wallet-library-ios

A library to manage your Decentralized Identities and Verified IDs on iOS.
MIT License
25 stars 11 forks source link

unsupportedAlgorithmFoundInJWK(algorithm: "P-256") #85

Open osagie-dfe opened 8 months ago

osagie-dfe commented 8 months ago

In my iOS project (Swift) which imports the Wallet library via cocoapods, the error above is triggered when I try to create a request from a verified ID client.

/// Create a verifiedIdClient.
let verifiedIdClient = VerifiedIdClientBuilder().build()
let input = VerifiedIdRequestURL(url: URL(string: "openid-vc://...")!)
let result = await verifiedIdClient.createRequest(from: input) ===> Error triggered by this.

Full error: {"error":"unsupportedAlgorithmFoundInJWK(algorithm: Optional(\"P-256\"))","message":"Unspecified Error.","code":"unspecified_error"}

Important note: This error is not triggered when I use the sample project. The sample project does not import the library via cocoapods, but rather copies all the wallet code into the project so I believe it very likely has something to do with the podspec for WalletLibrary.

Could you please investigate?