Storing Information

How to store information off-chain for Governance Actions, DRep registration, and Voting.

Generally speaking, most data in Governance is stored off-chain, and is referenced by an on-chain url and hash. For more detailed information, please see CIP-1694

Off-chain data can be stored in many places, such as IPFS, a web URL, or repo site like GitHub. The URL that references the data has to be publicly readable.

Here is an example of using GitHub for storing data for a Governance Action. Storing data for becoming a DRep is the same process.

  1. Agree to store information and click "Continue

  2. Your information will be packaged up in a .jsonld file. Click on the button with the filename in it, and save it to your computer.

  3. If you don't have a github account, you will need to create one. Simply enter your email address and click "Sign up for GitHub.

  4. Click "Continue

  5. Create a password, click "Continue"

  6. Create a github user name (must be unique on github).

  7. GitHub will send you a confirmation code to your email inbox. Find it and enter it here.

  8. You now have a new GitHub account. You must create a repository, so in the screen below:

    1. Create a name for your repository

    2. Make your repository public

    3. Click "Create Repository"

  9. Now you have a public GitHub repository of your own!. In the example below, the repository is called "Saver-saver". You will need to upload the data.jsonld file that you got from GovTool now. Click the link "uploading an existing file"

  10. Upload the "data.jsonld" file to GitHub by drag-and-dropping it or choosing it from your computer. Click the "Commit changes" button. This will add your file to GitHub and put it in your repository.

  11. After the file uploads, you will see it's name in the list below. Click on the file name (it is a link)

  12. This will display the file contents. You now need to get a URL to paste into GovTool. To do this, click the "Raw" button above the code.

  13. From the "Raw" view, copy out the URL in the address bar:

  14. Return to GovTool, paste the URL into the URL field, and click "Submit"

  15. You have now submitted your data. It may take a few minutes or seconds for GovTool to process it.

Last updated