Skip to content
Magicnumber sample app
Ruby CSS HTML Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public
.dockerignore
.gitignore
Dockerfile
Gemfile
Gemfile.lock
README.md
app.rb
docker-compose.yml

README.md

Magicnumber App

Example REY app that returns a magic number, computed out of the subject's public key.

Available live at http://rey-example-magicnumber.herokuapp.com.

Requirements

You'll need rey-cli installed in your system.

Usage

Simply start the app with:

docker-compose up

Then, you'll need to register the app's manifest on the running blockchain node with:

rey-cli dev cmd publish-manifest 0x88032398beab20017e61064af3c7c8bd38f4c968 http://localhost:8000/manifest

You'll need to publish the verifier's manifest:

rey-cli dev cmd publish-manifest 0x44f1d336e4fdf189d2dadd963763883582c45312 http://localhost:8082/manifest

You can visit the app at http://localhost:8000.

To read the REY app, add your Metamask private key to the blockchain node:

rey-cli dev cmd add-account <YOUR_METAMASK_PRIVATE_KEY>

Then run:

rey-cli dev cmd read-app 0x88032398beab20017e61064af3c7c8bd38f4c968 <YOUR_ADDRESS> 0x44f1d336e4fdf189d2dadd963763883582c45312
You can’t perform that action at this time.