Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 1.95 KB

README.md

File metadata and controls

47 lines (35 loc) · 1.95 KB

Curation List for Moss 0.13

This folder contains a curations list and a Tools list.

Curation List: A curation list is a list of curations of Weave Tools maintained by a curator. It can contain multiple curations listing Tools of different developer collectives.

Tools List: A Tools list is a list of Weave Tools maintained by a developer collective. It contains information about the developer collective as well as a list of Tools and available versions thereof. A Tool is identified by an id and a versionBranch, where all versions of a Tool belonging to the same versionBranch are assumed to be compatible.

Computing Sha256 Hashes of .webhapp files

To verify the integrity of the files, the sha256 hashes of the .webhapp, .happ and the UI are required for every Tool version in a Tools list. These get stored in the group DNA of a Moss group so that each group member can verify that they download the same Tool as other group members.

To compute these hashes you can use the Weave CLI @theweave/cli and run the following command:

weave hash-webhapp [path or URL to your Tool's webhapp file]

Important

It is important to use the Weave CLI for computing the hashes as the hashes may differ from computing them manually and they need to match with how Moss computes them.

Modifying the Curation List

  1. Run npm install
  2. Go to ./modify/curations-0.13.ts and change the file as needed
  3. Run npm run write-lists which should update ./lists/curations-0.13.json.
  4. run npm run test to run basic validity checks for the generated json file.
  5. Make a PR with the new change

Modifying the Tools List

  1. Run npm install
  2. Go to ./modify/tool-list-0.13.ts and change the file as needed
  3. Run npm run write-lists which should update ./lists/tool-list-0.13.json.
  4. run npm run test to run basic validity checks for the generated json file.
  5. Make a PR with the new change