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 data credential signing & verification to the CLI #184

Merged
merged 19 commits into from
Sep 6, 2024

Conversation

thobson88
Copy link
Collaborator

@thobson88 thobson88 commented Jul 3, 2024

Closes #181.

Adds a new data subcommand to the CLI. This is similar to the vc subcommand, but instead for signing and verifying a credential for a data file.

Note that the SHA-256 hashing algorithm is used (implicitly) to compute the hash identifier for the dataset, e.g.:

  "credentialSubject": {
    "dataset": "03d3711e0ec7585fdf635535665c3d9e376d36c0f89024d30fa7587cd247f6b1"
  },

Ideally we should make this choice of hash function explicit, but it's unclear (to me) where this information belongs inside the credential.

(There are also some calls to unwrap() that need to be fixed before merging.)

Copy link
Collaborator

@sgreenbury sgreenbury left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great and passes all expected tests (see #195), including ignored.

@sgreenbury sgreenbury merged commit 20fbf78 into main Sep 6, 2024
5 checks passed
@sgreenbury sgreenbury deleted the 181-credentials4data branch September 6, 2024 14:47
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.

Implement Credentials for Data MVP
2 participants