spruceid / didkit

A cross-platform toolkit for decentralized identity.
https://www.spruceid.dev/didkit/didkit
Apache License 2.0
274 stars 76 forks source link

update ssi imports and types to post-restructure #312

Closed chunningham closed 2 years ago

chunningham commented 2 years ago

we should at some point reconsider using branch = "main" for the ssi crate, any breaking changes pushed to main will break didkit builds everywhere. this pr just fixes builds for the latest update by changing imports and some types, users of the FFI libraries should not notice any breaking changes. notably this pr also slightly reorganises src/lib/error.rs to use thiserror and expands the set of features to match those of ssi. this should resolve #310 and #311 for now, but users will have to change their p256 feature selection to secp256r1. This feature is also now a default.

sbihel commented 2 years ago

I agree for the ssi ref in the CI. I think you can replace it as is with main