-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Credential/Presentation verify fails if serde_json feature arbitrary_precision is enabled. #528
Comments
Ok, it looks like the call Comparison of the
When it is enabled:
So it looks like because Unfortunately I'm not able to disable the arbitrary_precision feature, since it's buried my dependency on the ethers-rs crate. But ideally that crate would avoid using the arbitrary_precision flag. Related:
|
This issue should be resolved with the new refactor (version
|
I'm currently digging into the precise cause, but it seems like the something in Credential/Presentation's impl of
to_dataset_for_signing
is not correctly forming the dataset when this arbitrary_precision feature is enabled in the serde_json crate. The arbitrary_precision feature causes numbers to be stored as strings, so perhaps to_dataset_for_signing is incorrectly canonicalizing numbers as strings.The specific error returned by Credential::verify / Presentation::verify is
"Verification equation was not satisfied"
if ed25519-dalek is used, and"ring::error::Unspecified"
if ring is used.The text was updated successfully, but these errors were encountered: