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

Smart contracts for use of the Validana server

Notifications You must be signed in to change notification settings

edubadges/smart-contracts

Repository files navigation

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

About

Smart contracts for use of the Validana server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published