Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Latest commit

 

History

History
executable file
·
27 lines (20 loc) · 1.26 KB

Readme.md

File metadata and controls

executable file
·
27 lines (20 loc) · 1.26 KB

An easy option is properly using the validana-cli (https://github.com/DvdGiessen/validana-cli). A user interface is still on the planning. Attached are the contracts in json format, as expected by the validana-cli. Start by creating the institution and then the entity contract.

Example usage:
Make sure to update the url, prefix and signing key to that of the processor.

validana-cli contract create --url wss://edubadges.com:8080/api/v1/ --prefix edubadges --signing-key KyJPCoYvgXaNpvTPshw52Nu5HyHq9jrUGmoCSkEvjbTgyQPWkJX5 --contract-file "path/to/contract/URL.json"

(Optional)

validana-cli transaction await --url wss://edubadges.com:8080/api/v1/ --prefix edubadges --id b043790915bc2f9b6bf8ae470f49c32d

Once all contract are created change call the url contract with the rest url of the server, e.g.:

validana-cli contract execute --url wss://edubadges.com:8080/api/v1/ --prefix edubadges --signing-key KyJPCoYvgXaNpvTPshw52Nu5HyHq9jrUGmoCSkEvjbTgyQPWkJX5 --contract-type URL --payload '{"url":"https://edubadges.com/api/v1/"}'

(Optional)

validana-cli transaction await --url wss://edubadges.com:8080/api/v1/ --prefix edubadges --id b043790915bc2f9b6bf8ae470f49c32d