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

Credential registry #241

Merged
merged 73 commits into from
May 30, 2023
Merged

Credential registry #241

merged 73 commits into from
May 30, 2023

Conversation

annenkov
Copy link
Contributor

@annenkov annenkov commented Apr 4, 2023

Purpose

Add an example of a credential registry smart contract

Checklist

  • My code follows the style of this project.
  • The code compiles without warnings.
  • I have performed a self-review of the changes.
  • I have documented my code, in particular the intent of the
    hard-to-understand areas.

@annenkov annenkov linked an issue Apr 11, 2023 that may be closed by this pull request
@annenkov annenkov marked this pull request as ready for review April 19, 2023 19:39
examples/credential-registry/Cargo.toml Outdated Show resolved Hide resolved
examples/credential-registry/src/lib.rs Outdated Show resolved Hide resolved
examples/credential-registry/src/lib.rs Outdated Show resolved Hide resolved
examples/credential-registry/src/lib.rs Outdated Show resolved Hide resolved
examples/credential-registry/src/lib.rs Outdated Show resolved Hide resolved
examples/quickcheck-test/Cargo.toml Outdated Show resolved Hide resolved
examples/reentrancy/Cargo.toml Outdated Show resolved Hide resolved
examples/credential-registry/src/lib.rs Outdated Show resolved Hide resolved
examples/credential-registry/src/lib.rs Outdated Show resolved Hide resolved
examples/credential-registry/src/lib.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@limemloh limemloh left a comment

Choose a reason for hiding this comment

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

LGTM!

@annenkov
Copy link
Contributor Author

@DOBEN I added entry_point to SigningData and check whether the right entrypoint is called. It makes sense to have it as extra assurance so we don't depend on the messages having slightly different data.

examples/credential-registry/Cargo.toml Outdated Show resolved Hide resolved
examples/credential-registry/Cargo.toml Outdated Show resolved Hide resolved
examples/credential-registry/Cargo.toml Outdated Show resolved Hide resolved
examples/credential-registry/src/lib.rs Show resolved Hide resolved
examples/credential-registry/src/lib.rs Outdated Show resolved Hide resolved
examples/credential-registry/src/lib.rs Outdated Show resolved Hide resolved
examples/credential-registry/src/lib.rs Outdated Show resolved Hide resolved
examples/credential-registry/src/lib.rs Outdated Show resolved Hide resolved
examples/credential-registry/src/lib.rs Outdated Show resolved Hide resolved
examples/credential-registry/src/lib.rs Outdated Show resolved Hide resolved
@abizjak abizjak mentioned this pull request May 19, 2023
5 tasks
abizjak and others added 5 commits May 23, 2023 14:44
* Changes and simplifications.

* Address review comments.

* Fix removal of revocation keys.

* Remove issuer keys.

* Add functions for updating credential metadata, and emitting relevant events.

* Remove unused Update event, fix serialization.

* Fix signature checking.

* Remove the use of credential IDs (uuids).

* Update examples/credential-registry/src/lib.rs

* Add comments; fix holder revocation test

---------

Co-authored-by: Danil Annenkov <[email protected]>
concordium-std/src/types.rs Show resolved Hide resolved
examples/credential-registry/Cargo.toml Outdated Show resolved Hide resolved
examples/credential-registry/src/lib.rs Outdated Show resolved Hide resolved
Copy link
Member

@DOBEN DOBEN left a comment

Choose a reason for hiding this comment

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

Great piece of work.

examples/credential-registry/src/lib.rs Show resolved Hide resolved
@annenkov annenkov merged commit 7892408 into main May 30, 2023
@annenkov annenkov deleted the credential-registry branch May 30, 2023 11:54
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.

Credential registry
4 participants