Skip to content
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.

mitmedialab/ml-coins

Repository files navigation

About

Example Certificate

Check out documentation of the certificate itself here.

Installation

  • Git clone the repository
  • Set up a virtual environment and install the dependencies from requirements.txt
  • Create a secrets.py file with the following structure
MONGO_URI = "mongodb://<username>:<password>@<domain>:<mongo_port>"
SECRET_KEY = "<random string>"

# Setup your mandrill account at https://www.mandrill.com/
MANDRILL_API_KEY = "<mandrill_api_key>"

Database Configuration

This webapp uses MongoDB. There are two collections, one for recipients and one for certificates. GridFs is used to store the certificates themselves.

Example of a recipient object:

{
  "_id": ObjectId(),
  "pubkey": "<recipient public key>",
  "info": {
    "email": "",
    "name": {
      "givenName": "",
      "familyName": ""
    },
    "degree": "<mas-ms/mas-phd/other>",
    "address": {
      "streetAddress": "",
      "city": "",
      "state": "",
      "zipcode": "",
      "country": ""
    }
  }
}

Example of a certificate object:

{
  "_id": "<uid string of certificate file>",
  "issued": <true/false>,
  "pubkey": "<recipient public key>",
  "txid": "<certificate transaction id>"
}

A recipient object can have multiple certificate objects. The objects are linked together by the "pubkey" field.

Contact

Contact coins@media.mit.edu with questions

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published