@prosopo/datasets 0.2.4 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tests/captcha.test.d.ts +2 -0
- package/dist/tests/captcha.test.d.ts.map +1 -0
- package/dist/tests/captcha.test.js +349 -0
- package/dist/tests/captcha.test.js.map +1 -0
- package/dist/tests/dataset.test.d.ts +2 -0
- package/dist/tests/dataset.test.d.ts.map +1 -0
- package/dist/tests/dataset.test.js +138 -0
- package/dist/tests/dataset.test.js.map +1 -0
- package/dist/tests/merkle.test.d.ts +2 -0
- package/dist/tests/merkle.test.d.ts.map +1 -0
- package/dist/tests/merkle.test.js +149 -0
- package/dist/tests/merkle.test.js.map +1 -0
- package/dist/tests/mocks/data/captchas.json +888 -0
- package/dist/tests/mocks/data/captchas1.json +53 -0
- package/dist/tests/mocks/data/captchas2.json +69 -0
- package/dist/tests/mocks/data/captchas3.json +54 -0
- package/dist/tests/mocks/data/captchas4.json +53 -0
- package/package.json +5 -5
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"captchas": [
|
|
3
|
+
{
|
|
4
|
+
"salt": "0x01",
|
|
5
|
+
"solution": [2, 3, 8],
|
|
6
|
+
"items": [
|
|
7
|
+
{ "data": "http://localhost:4000/img/test_image_png_5.png", "type": "image" },
|
|
8
|
+
{ "data": "http://localhost:4000/img/test_image_png_24.png", "type": "image" },
|
|
9
|
+
{ "data": "http://localhost:4000/img/test_image_png_27.png", "type": "image" },
|
|
10
|
+
{ "data": "http://localhost:4000/img/test_image_png_28.png", "type": "image" },
|
|
11
|
+
{ "data": "http://localhost:4000/img/test_image_png_22.png", "type": "image" },
|
|
12
|
+
{ "data": "http://localhost:4000/img/test_image_png_32.png", "type": "image" },
|
|
13
|
+
{ "data": "http://localhost:4000/img/test_image_png_26.png", "type": "image" },
|
|
14
|
+
{ "data": "http://localhost:4000/img/test_image_png_44.png", "type": "image" },
|
|
15
|
+
{ "data": "http://localhost:4000/img/test_image_png_51.png", "type": "image" }
|
|
16
|
+
],
|
|
17
|
+
"target": "dog"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"salt": "0x02",
|
|
21
|
+
"solution": [0, 1, 4],
|
|
22
|
+
"items": [
|
|
23
|
+
{ "data": "http://localhost:4000/img/test_image_png_5.png", "type": "image" },
|
|
24
|
+
{ "data": "http://localhost:4000/img/test_image_png_24.png", "type": "image" },
|
|
25
|
+
{ "data": "http://localhost:4000/img/test_image_png_27.png", "type": "image" },
|
|
26
|
+
{ "data": "http://localhost:4000/img/test_image_png_28.png", "type": "image" },
|
|
27
|
+
{ "data": "http://localhost:4000/img/test_image_png_22.png", "type": "image" },
|
|
28
|
+
{ "data": "http://localhost:4000/img/test_image_png_32.png", "type": "image" },
|
|
29
|
+
{ "data": "http://localhost:4000/img/test_image_png_26.png", "type": "image" },
|
|
30
|
+
{ "data": "http://localhost:4000/img/test_image_png_44.png", "type": "image" },
|
|
31
|
+
{ "data": "http://localhost:4000/img/test_image_png_51.png", "type": "image" }
|
|
32
|
+
],
|
|
33
|
+
"target": "cat"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"salt": "0x03",
|
|
37
|
+
"items": [
|
|
38
|
+
{ "data": "http://localhost:4000/img/test_image_png_5.png", "type": "image" },
|
|
39
|
+
{ "data": "http://localhost:4000/img/test_image_png_24.png", "type": "image" },
|
|
40
|
+
{ "data": "http://localhost:4000/img/test_image_png_27.png", "type": "image" },
|
|
41
|
+
{ "data": "http://localhost:4000/img/test_image_png_28.png", "type": "image" },
|
|
42
|
+
{ "data": "http://localhost:4000/img/test_image_png_22.png", "type": "image" },
|
|
43
|
+
{ "data": "http://localhost:4000/img/test_image_png_32.png", "type": "image" },
|
|
44
|
+
{ "data": "http://localhost:4000/img/test_image_png_26.png", "type": "image" },
|
|
45
|
+
{ "data": "http://localhost:4000/img/test_image_png_44.png", "type": "image" },
|
|
46
|
+
{ "data": "http://localhost:4000/img/test_image_png_51.png", "type": "image" }
|
|
47
|
+
],
|
|
48
|
+
"target": "horse"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"format": "SelectAll",
|
|
52
|
+
"datasetId": "0x45f0bab71f6873f55f9c60a9dcb727e26951388a41f625c7001914660b5040a2"
|
|
53
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"captchas": [
|
|
3
|
+
{
|
|
4
|
+
"salt": "0x01",
|
|
5
|
+
"solution": [0, 7],
|
|
6
|
+
"items": [
|
|
7
|
+
{ "data": "http://localhost:4000/img/test_image_png_4.png", "type": "image" },
|
|
8
|
+
{ "data": "http://localhost:4000/img/test_image_png_15", "type": "image" },
|
|
9
|
+
{ "data": "http://localhost:4000/img/test_image_png_26.png", "type": "image" },
|
|
10
|
+
{ "data": "http://localhost:4000/img/test_image_png_94.png", "type": "image" },
|
|
11
|
+
{ "data": "http://localhost:4000/img/test_image_png_95.png", "type": "image" },
|
|
12
|
+
{ "data": "http://localhost:4000/img/test_image_png_20.png", "type": "image" },
|
|
13
|
+
{ "data": "http://localhost:4000/img/test_image_png_79.png", "type": "image" },
|
|
14
|
+
{ "data": "http://localhost:4000/img/test_image_png_85.png", "type": "image" },
|
|
15
|
+
{ "data": "http://localhost:4000/img/test_image_png_90.png", "type": "image" }
|
|
16
|
+
],
|
|
17
|
+
"target": "plane"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"salt": "0x02",
|
|
21
|
+
"solution": [4, 6, 8],
|
|
22
|
+
"items": [
|
|
23
|
+
{ "data": "http://localhost:4000/img/test_image_png_4.png", "type": "image" },
|
|
24
|
+
{ "data": "http://localhost:4000/img/test_image_png_15", "type": "image" },
|
|
25
|
+
{ "data": "http://localhost:4000/img/test_image_png_26.png", "type": "image" },
|
|
26
|
+
{ "data": "http://localhost:4000/img/test_image_png_94.png", "type": "image" },
|
|
27
|
+
{ "data": "http://localhost:4000/img/test_image_png_95.png", "type": "image" },
|
|
28
|
+
{ "data": "http://localhost:4000/img/test_image_png_20.png", "type": "image" },
|
|
29
|
+
{ "data": "http://localhost:4000/img/test_image_png_79.png", "type": "image" },
|
|
30
|
+
{ "data": "http://localhost:4000/img/test_image_png_85.png", "type": "image" },
|
|
31
|
+
{ "data": "http://localhost:4000/img/test_image_png_90.png", "type": "image" }
|
|
32
|
+
],
|
|
33
|
+
"target": "dog"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"salt": "0x03",
|
|
37
|
+
"solution": [2, 3, 5],
|
|
38
|
+
"items": [
|
|
39
|
+
{ "data": "http://localhost:4000/img/test_image_png_4.png", "type": "image" },
|
|
40
|
+
{ "data": "http://localhost:4000/img/test_image_png_15", "type": "image" },
|
|
41
|
+
{ "data": "http://localhost:4000/img/test_image_png_26.png", "type": "image" },
|
|
42
|
+
{ "data": "http://localhost:4000/img/test_image_png_94.png", "type": "image" },
|
|
43
|
+
{ "data": "http://localhost:4000/img/test_image_png_95.png", "type": "image" },
|
|
44
|
+
{ "data": "http://localhost:4000/img/test_image_png_20.png", "type": "image" },
|
|
45
|
+
{ "data": "http://localhost:4000/img/test_image_png_79.png", "type": "image" },
|
|
46
|
+
{ "data": "http://localhost:4000/img/test_image_png_85.png", "type": "image" },
|
|
47
|
+
{ "data": "http://localhost:4000/img/test_image_png_90.png", "type": "image" }
|
|
48
|
+
],
|
|
49
|
+
"target": "horse"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"salt": "0x04",
|
|
53
|
+
"items": [
|
|
54
|
+
{ "data": "http://localhost:4000/img/test_image_png_4.png", "type": "image" },
|
|
55
|
+
{ "data": "http://localhost:4000/img/test_image_png_15", "type": "image" },
|
|
56
|
+
{ "data": "http://localhost:4000/img/test_image_png_26.png", "type": "image" },
|
|
57
|
+
{ "data": "http://localhost:4000/img/test_image_png_94.png", "type": "image" },
|
|
58
|
+
{ "data": "http://localhost:4000/img/test_image_png_95.png", "type": "image" },
|
|
59
|
+
{ "data": "http://localhost:4000/img/test_image_png_20.png", "type": "image" },
|
|
60
|
+
{ "data": "http://localhost:4000/img/test_image_png_79.png", "type": "image" },
|
|
61
|
+
{ "data": "http://localhost:4000/img/test_image_png_85.png", "type": "image" },
|
|
62
|
+
{ "data": "http://localhost:4000/img/test_image_png_90.png", "type": "image" }
|
|
63
|
+
],
|
|
64
|
+
"target": "bird"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"format": "SelectAll",
|
|
68
|
+
"datasetId": "0x37e3b1db75f9bd55c0492c18e4aa28a63b22af55335033162aac320f21513ca8"
|
|
69
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"captchas": [
|
|
3
|
+
{
|
|
4
|
+
"salt": "0x01",
|
|
5
|
+
"solution": [1, 6, 8],
|
|
6
|
+
"items": [
|
|
7
|
+
{ "data": "http://localhost:4000/img/test_image_png_82.png", "type": "image" },
|
|
8
|
+
{ "data": "http://localhost:4000/img/test_image_png_78.png", "type": "image" },
|
|
9
|
+
{ "data": "http://localhost:4000/img/test_image_png_89.png", "type": "image" },
|
|
10
|
+
{ "data": "http://localhost:4000/img/test_image_png_61.png", "type": "image" },
|
|
11
|
+
{ "data": "http://localhost:4000/img/test_image_png_69.png", "type": "image" },
|
|
12
|
+
{ "data": "http://localhost:4000/img/test_image_png_71.png", "type": "image" },
|
|
13
|
+
{ "data": "http://localhost:4000/img/test_image_png_33.png", "type": "image" },
|
|
14
|
+
{ "data": "http://localhost:4000/img/test_image_png_25.png", "type": "image" },
|
|
15
|
+
{ "data": "http://localhost:4000/img/test_image_png_21.png", "type": "image" }
|
|
16
|
+
],
|
|
17
|
+
"target": "cat"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"salt": "0x01",
|
|
21
|
+
"solution": [0, 3, 4],
|
|
22
|
+
"items": [
|
|
23
|
+
{ "data": "http://localhost:4000/img/test_image_png_82.png", "type": "image" },
|
|
24
|
+
{ "data": "http://localhost:4000/img/test_image_png_78.png", "type": "image" },
|
|
25
|
+
{ "data": "http://localhost:4000/img/test_image_png_89.png", "type": "image" },
|
|
26
|
+
{ "data": "http://localhost:4000/img/test_image_png_61.png", "type": "image" },
|
|
27
|
+
{ "data": "http://localhost:4000/img/test_image_png_69.png", "type": "image" },
|
|
28
|
+
{ "data": "http://localhost:4000/img/test_image_png_71.png", "type": "image" },
|
|
29
|
+
{ "data": "http://localhost:4000/img/test_image_png_33.png", "type": "image" },
|
|
30
|
+
{ "data": "http://localhost:4000/img/test_image_png_25.png", "type": "image" },
|
|
31
|
+
{ "data": "http://localhost:4000/img/test_image_png_21.png", "type": "image" }
|
|
32
|
+
],
|
|
33
|
+
"target": "plane"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"salt": "0x01",
|
|
37
|
+
"solution": [2, 5, 7],
|
|
38
|
+
"items": [
|
|
39
|
+
{ "data": "http://localhost:4000/img/test_image_png_82.png", "type": "image" },
|
|
40
|
+
{ "data": "http://localhost:4000/img/test_image_png_78.png", "type": "image" },
|
|
41
|
+
{ "data": "http://localhost:4000/img/test_image_png_89.png", "type": "image" },
|
|
42
|
+
{ "data": "http://localhost:4000/img/test_image_png_61.png", "type": "image" },
|
|
43
|
+
{ "data": "http://localhost:4000/img/test_image_png_69.png", "type": "image" },
|
|
44
|
+
{ "data": "http://localhost:4000/img/test_image_png_71.png", "type": "image" },
|
|
45
|
+
{ "data": "http://localhost:4000/img/test_image_png_33.png", "type": "image" },
|
|
46
|
+
{ "data": "http://localhost:4000/img/test_image_png_25.png", "type": "image" },
|
|
47
|
+
{ "data": "http://localhost:4000/img/test_image_png_21.png", "type": "image" }
|
|
48
|
+
],
|
|
49
|
+
"target": "car"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"format": "SelectAll",
|
|
53
|
+
"datasetId": "0x494b806c43a270b0dfa750f72713412ccf7d5322e9a91b724e5ef0db7bfffe07"
|
|
54
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"datasetId": "0x185ce03db451ab1b4d72c20d31517543eeaac52e78cf102ecc6398f6fd7e2c9a",
|
|
3
|
+
"captchas": [
|
|
4
|
+
{
|
|
5
|
+
"salt": "0x010101",
|
|
6
|
+
"solution": [3, 6, 7],
|
|
7
|
+
"items": [
|
|
8
|
+
{ "data": "http://localhost:4000/img/test_image_png_16.png", "type": "image" },
|
|
9
|
+
{ "data": "http://localhost:4000/img/test_image_png_17.png", "type": "image" },
|
|
10
|
+
{ "data": "http://localhost:4000/img/test_image_png_27.png", "type": "image" },
|
|
11
|
+
{ "data": "http://localhost:4000/img/test_image_png_33.png", "type": "image" },
|
|
12
|
+
{ "data": "http://localhost:4000/img/test_image_png_40.png", "type": "image" },
|
|
13
|
+
{ "data": "http://localhost:4000/img/test_image_png_52.png", "type": "image" },
|
|
14
|
+
{ "data": "http://localhost:4000/img/test_image_png_78.png", "type": "image" },
|
|
15
|
+
{ "data": "http://localhost:4000/img/test_image_png_93.png", "type": "image" },
|
|
16
|
+
{ "data": "http://localhost:4000/img/test_image_png_70.png", "type": "image" }
|
|
17
|
+
],
|
|
18
|
+
"target": "cat"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"salt": "0x020202",
|
|
22
|
+
"solution": [8, 5, 1],
|
|
23
|
+
"items": [
|
|
24
|
+
{ "data": "http://localhost:4000/img/test_image_png_16.png", "type": "image" },
|
|
25
|
+
{ "data": "http://localhost:4000/img/test_image_png_17.png", "type": "image" },
|
|
26
|
+
{ "data": "http://localhost:4000/img/test_image_png_27.png", "type": "image" },
|
|
27
|
+
{ "data": "http://localhost:4000/img/test_image_png_33.png", "type": "image" },
|
|
28
|
+
{ "data": "http://localhost:4000/img/test_image_png_40.png", "type": "image" },
|
|
29
|
+
{ "data": "http://localhost:4000/img/test_image_png_52.png", "type": "image" },
|
|
30
|
+
{ "data": "http://localhost:4000/img/test_image_png_78.png", "type": "image" },
|
|
31
|
+
{ "data": "http://localhost:4000/img/test_image_png_93.png", "type": "image" },
|
|
32
|
+
{ "data": "http://localhost:4000/img/test_image_png_70.png", "type": "image" }
|
|
33
|
+
],
|
|
34
|
+
"target": "deer"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"salt": "0x030303",
|
|
38
|
+
"items": [
|
|
39
|
+
{ "data": "http://localhost:4000/img/test_image_png_16.png", "type": "image" },
|
|
40
|
+
{ "data": "http://localhost:4000/img/test_image_png_17.png", "type": "image" },
|
|
41
|
+
{ "data": "http://localhost:4000/img/test_image_png_27.png", "type": "image" },
|
|
42
|
+
{ "data": "http://localhost:4000/img/test_image_png_33.png", "type": "image" },
|
|
43
|
+
{ "data": "http://localhost:4000/img/test_image_png_40.png", "type": "image" },
|
|
44
|
+
{ "data": "http://localhost:4000/img/test_image_png_52.png", "type": "image" },
|
|
45
|
+
{ "data": "http://localhost:4000/img/test_image_png_78.png", "type": "image" },
|
|
46
|
+
{ "data": "http://localhost:4000/img/test_image_png_93.png", "type": "image" },
|
|
47
|
+
{ "data": "http://localhost:4000/img/test_image_png_70.png", "type": "image" }
|
|
48
|
+
],
|
|
49
|
+
"target": "dog"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"format": "SelectAll"
|
|
53
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/datasets",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"author": "PROSOPO LIMITED <info@prosopo.io>",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"private": false,
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@polkadot/util": "^12.3.2",
|
|
42
|
-
"@prosopo/common": "0.2.
|
|
43
|
-
"@prosopo/contract": "0.2.
|
|
44
|
-
"@prosopo/types": "0.2.
|
|
45
|
-
"@prosopo/util": "0.2.
|
|
42
|
+
"@prosopo/common": "0.2.6",
|
|
43
|
+
"@prosopo/contract": "0.2.6",
|
|
44
|
+
"@prosopo/types": "0.2.6",
|
|
45
|
+
"@prosopo/util": "0.2.6",
|
|
46
46
|
"axios": "^1.5.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|