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

Add CLI and FFI with VC/VP issuing and verifying #2

Merged
merged 3 commits into from
Oct 20, 2020
Merged

Add CLI and FFI with VC/VP issuing and verifying #2

merged 3 commits into from
Oct 20, 2020

Conversation

clehner
Copy link
Contributor

@clehner clehner commented Oct 19, 2020

This implements an initial FFI and CLI based on spruceid/ssi#35. The starting point for the FFI is spruceid/ssi#34.

The CLI, C library, and Flutter plugin support the following functionality:

  • issuing a credential
  • verifying a credential
  • issuing a presentation
  • verifying a presentation
  • generating a ed25519 key
  • converting a ed25519 key to a did:key DID

The API for the C library and Flutter plugin is JSON. Each method takes JSON strings and/or returns JSON strings. Later we could implement a more rich API using #[repr(C)] rust structs and Dart Struct subclasses.

The Java (JNI) interface is not yet updated to include this functionality.

There is also a stub for the HTTP server which will later implement similar functionality.

The CI fetches the dependent SSI library using a GitHub access token for my account. When SSI is public, that can be removed.

@clehner clehner force-pushed the dev branch 8 times, most recently from 8c3108b to df46ecf Compare October 19, 2020 20:54
Implemented in CLI, C library, and Flutter plugin:
- Generate key and did:key for Ed25519
- VC and VP issue and verify
@clehner clehner merged commit ef70465 into main Oct 20, 2020
@clehner clehner mentioned this pull request Oct 20, 2020
@clehner clehner deleted the dev branch October 20, 2020 20:53
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.

2 participants