Concordium / concordium-dapp-libraries

A coherent set of building blocks for making it as easy as possible for developers to build web-based dApps.
Apache License 2.0
7 stars 5 forks source link

Fix serialization of parameters and parsing of result in requestVerifiablePresentation #62

Closed orhoj closed 6 months ago

orhoj commented 6 months ago

Purpose

Fix an issue with the request parameters and parsing of the result of the request in requestVerifiablePresentation. We have to wrap the parameters and the result to ensure that WalletConnect does not attempt to do any parsing on the JSON as it will fail on bigints.

Changes

Checklist

orhoj commented 6 months ago

Is it correctly understood that the problem only affects credentialStatements, not challenge? Because as challenge is already a string that should be unaffected. If there are decoding errors of that I suspect that the problem is on the wallet side.

Yes, the problem only affects credentialStatements.