-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Verify credential tutorial (Python) #3030
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just added a few minor comments.
FYI, I encountered an issue when running the credential issuer code on my Mac (nothing to do with the code itself, just Flask and macOS issues). Basically it looks like port 5000 is already used by macOS Sequoia (and probably previous versions) for the AirPlay Receiver
, if it's enabled. We should suggest that Mac users try a different port from the default Flask port if they have this enabled:
flask --app issuer_service run --port 8000
More info here:
https://stackoverflow.com/questions/72795799/how-to-solve-403-error-with-flask-in-python
verify_credential: comment out unused error Verify credential: implement commandline usage Add verify creds tutorial Verify credential: expand example usage Verify credential: clarify Python version Verify Credential: add description metadata Apply suggestions from @maria-robobug review Co-authored-by: Maria Shodunke <[email protected]> Credential Verification: Add hex example & remove old TODO
Applied review changes, rebased & squashed, and added links between the two Credentials tutorials. |
Companion tutorial to #2960 based on feedback. Demonstrates how to verify that a credential exists and is valid.
Preview link: https://xrpl-dev-portal--verify-cred.preview.redocly.app/docs/tutorials/python/compliance/verify-credential
These steps are not necessary for DepositAuth or many of other forthcoming the use cases that use Credentials as part of Permissioned Domains to grant access to things like Permissioned DEXes, MPTs, etc—because, in those cases, the ledger performs credential verification automatically. However, there are other use cases for Credentials in which you might want to verify them like this.
If you want to create additional credentials for testing with this, you can run the code from #2960.
I expect (someone) to make a separate JavaScript version with a web interface (possibly as a Dev Tool also) eventually. To make the review process easier, I did not try to include both languages in one PR.