prosopo/provider

Work out why the hashes in captchas.json are not consistent with the hashes imported into the database

Closed this issue · 0 comments

packages/provider/data/captchas.json

        {
          "hash": "0xacac4785d2d7e298af5479c771f3e3035207a47c814901a8c1c788ebee2c73e6",
          "data": "https://prosopo.github.io/demo-datasets/img/test_image_png_70.png",
          "type": "image"
        }

database

        hash: '0x659f95e86a31be3c546c3e38d8dac6395e100eff5a7e949f853e493d19f3514b',
        data: 'https://prosopo.github.io/demo-datasets/img/test_image_png_70.png',
        type: 'image'
      }

Answer: we are not hashing the images, only the paths. Will be fixed by #201