Stephen Curran
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Revocation Registry Handling in ACA-Py This document covers a proposed division of labour between the controller and ACA-Py in managing revocation registries. On this first draft, the details of the API cover only the necessary data and may be missing required information. I'm sure this is naive and there are complications to doing this, but from an information management perspective, this is a possible division of labour/tracking between ACA-Py and the Controller. ## Division of Responsibilities The division of responsibility is defined such that the Controller deals with credentials from a business perspective, while ACA-Py handles the messy work of interacting with the Indy ledger as required. For example, the Controller need not know anything about what revocation register is being used, or when a revocation register is used up and a new one is needed. Those are messy things that only ACA-Py needs to worry about. In this section is a list of the responsibilities. The remainder of the document describes the how those responsibilities manifest in actions, and provides some detail of those actions. ### Controller Responsibilities - Define the Credential Definition, optionally with revocation support using registries of a given size and tails file location - Publish the tails files - It would really be nice if this was NOT the controller's problem. Possible? - Issue credentials - Persist the ID of issued credentials - Revoke credentials - Publish revocations ### ACA-Py Responsibilities - Create and publish the cred_def and initial rev_reg (if needed) - Track the issuing of credentials - When required, transition to a new RevReg - When a RevReg is first use, create a new one that will be used when the current one is exhausted - Track revoked but not published credential IDs - Publish RevEntry transaction with all "to be published" IDs ## Create/Publish Credential Definition Controller calls API: - POST /credential_definition/create - Issuer DID - Schema ID - Revocation Y/N - Revocation Size - between 10 and 20k - Tails File Locations (server prefix) ### ACA-Py: - Generate credential definition - Store information about the creddef in wallet: - `creddef_id` from Indy and other indy-sdk data - Tails server location (from query param) - RevReg size (from query param) - Active RevReg (initially Null) - If Revocation is "Y" - Generate initial Revocation Registry (see below) On completion, send event to controller with "creddef_id" (or put into "ready" state?). Tails file generation takes a while, depending on its size. ### Controller: Tracks the Cred Def ID and uses it when needed. ## Generate RevReg ### ACA-Py An async task managed within ACA-Py, with parameters `creddef_id`, `revreg_size` and `tails_file_location`. Concurrency constraint -- when needed, must be executed exactly once. For a given `creddef_id`, number of creds per RevReg - create a new RevReg - Store information about the RevReg in the wallet - Indy RevReg ID (implict link back to CredDef) - RevReg Size - send event to the Controller with information to allow publishing the tails file - _Assumes ACA-Py instance cannot publish the tails file_ ### Controller On receipt of a "tails file created" message, Controller publishes the tails file. ## Credential Issue ### ACA-Py Via an event after /send or /issue, ACA-Py delivers back to the issuer the ID the credential issued, which is either: - If not using Revocation - The a credential_id that is (likely) an incrementing number - If using Revocation - The a credential ID in the form `RevReg ID+CredInRevRegID` Other information might be returned, such as the issueance timestamp. If the issuance triggers a transition from the current RevReg to the next (all credentials issued), add an async task to generate the next RevReg. Note that this transition occurs on the issueance of the very first credential from the CredDef, as the "Current Rev Reg" goes from `Null` to the ID of the first RevReg. Note that there is a potential concurrency issue if multiple instances of ACA-Py discover in parallel that the current RevReg is full, request the created but not active RevReg be activated, and request the generation of a new RevReg. If the issuance cannot be completed because there are no available credentials, an error should be returned to the Controller. This should not happen in the normal course of operation as if the current RevReg is full, there is a RevReg already to go. ### Controller The Controller tracks the credential ID returned in the event with other information about the entity to which it was issued. ## Credential Revoke ### Controller - POST /credential_definition/revoke - CredDef ID - Credential ID - Recall that this includes both the RevRegID and the CredID within that RevRegId - Hmm...that ID also contains the CredDef ID, so perhaps the CredDef ID is not needed? - Publish [Y/N] ### ACA-Py Adds to a list of pending revocations for the given `creddef_id`. If publish is true, invokes the async `publishRevocation` action (defined below). ## Publish Revocations ### Controller - Post /credential_definition/publish_revocation - Can be invoked as a byproduct of the "Credential Revoke" endpoint described above. ### ACA-Py - Get the list of pending revocations - Concurrency handling needed here. - For each RevReg_ID found in the list - For each CredID found for that RevRegID - Update the accumulator (or whatever needs to be done) - Prepare and execute the RevEntry transaction to publish the revocations - Send "RevPublishCompleted" event to the Controller with the status of the process

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully