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

Provider can load data set to database #5

Closed
7 of 9 tasks
forgetso opened this issue Oct 25, 2021 · 0 comments · Fixed by #20
Closed
7 of 9 tasks

Provider can load data set to database #5

forgetso opened this issue Oct 25, 2021 · 0 comments · Fixed by #20
Labels
Milestone

Comments

@forgetso
Copy link
Member

forgetso commented Oct 25, 2021

As a Provider
I would like to store captcha data to my local database
So that I can serve captchas upon request

  • decide on format for captcha data (JSON or ... ?)
  • create captcha types in typescript (e.g. image - 9 images like recaptcha/hcaptcha, image - something else, text - multi select)
  • create dummy captcha data
  • decide database to store data in
  • store data to database
  • compute dataset hash - this is the merkle root of the data set
  • store dataset hash to blockchain (contractApi.providerAddDataSet(dataSetHash))
  • Database unit tests #22
  • Database load testing #23
    Data structure suggestion:
{
  "datasetId": "dataset1",
  "captchas": [
    {
      "captchaId": 1,
      "solution": [],
      "salt": "0x01",
      "format": "select_all",
      "target": "bus",
      "images": [
        "/home/dev/prosopo/data/img/01.01.jpeg",
        "/home/dev/prosopo/data/img/01.02.jpeg",
        "/home/dev/prosopo/data/img/01.03.jpeg",
        "/home/dev/prosopo/data/img/01.04.jpeg",
        "/home/dev/prosopo/data/img/01.05.jpeg",
        "/home/dev/prosopo/data/img/01.06.jpeg",
        "/home/dev/prosopo/data/img/01.07.jpeg",
        "/home/dev/prosopo/data/img/01.08.jpeg",
        "/home/dev/prosopo/data/img/01.09.jpeg"
      ]
    }
  ]
}
@forgetso forgetso added this to the Milestone1 milestone Oct 25, 2021
@forgetso forgetso added the db label Nov 19, 2021
@forgetso forgetso linked a pull request Dec 2, 2021 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant