Skip to content
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

Update library to use SmartId V3.0.2 #1

Open
wants to merge 64 commits into
base: master
Choose a base branch
from
Open

Update library to use SmartId V3.0.2 #1

wants to merge 64 commits into from

Conversation

Joeydelarago
Copy link

This is more or less a rewrite of the library for the SmartID v3 API.

Notable changes:

  • Version bumped to 1.0.0, there are many breaking changes.
  • QR Code Auth & Signing now available
  • Strong typing on all fields
  • Certificate validation is now done in the library
  • Digest validation is not done in the library
  • All public functions now return thiserror errors instead of anyhow. So the errors can be handled by projects including this lib.
  • State management included in the client (for calculating digests and getting session status)
  • Rust docs extended to most important functions and structs
  • Added some manual tests for running through the app flow with a device

…g a session.

This allows us to access the session state after getting the status, for things like building an ACSP_V1 digest.
This allows the digest to be fetched for ACSP_V1 signatures. This is only possible after recieving the server random from the response.
Verifying no hash rsa signatures is not supported by any of the major crates, so a custome implementation had to be created here.
This had to be switched because webpki fails when the TLS EKUs are not included in the cert, but we are validating signing certs not tls.
Add all demo/production certificates for skid to project.
Add option to pass additional certs to client.
This is used in document signing for AdES-L/LTA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant