o1js-pack 0.5.0 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"PackingPlant.js","sourceRoot":"","sources":["../../../src/lib/PackingPlant.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,MAAM,EAEN,QAAQ,EAER,QAAQ,
|
1
|
+
{"version":3,"file":"PackingPlant.js","sourceRoot":"","sources":["../../../src/lib/PackingPlant.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,MAAM,EAEN,QAAQ,EAER,QAAQ,GAET,MAAM,MAAM,CAAC;AAEd,MAAM,kBAAkB,GAAG,IAAI,CAAC;AAEhC,MAAM,UAAU,YAAY,CAC1B,WAAc,EACd,CAAS,EACT,OAAe;IAEf,IAAI,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,kBAAkB,EAAE;QAC5C,MAAM,IAAI,KAAK,CACb,qGAAqG,CACtG,CAAC;KACH;IACD,MAAe,OAAQ,SAAQ,MAAM,CAAC;QACpC,MAAM,EAAE,KAAK;KACd,CAAC;QAKA,YAAY,MAAa;YACvB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;QACpB,CAAC;QAED,uDAAuD;QACvD,MAAM,CAAC,YAAY,CAAC,KAAQ;YAC1B,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;QACjD,CAAC;QACD,MAAM,CAAC,UAAU;YACf,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;QAC/C,CAAC;QACD,MAAM,CAAC,MAAM,CAAC,CAAQ;YACpB,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;QAC3C,CAAC;QACD,MAAM;QAEN;;;;WAIG;QACH,MAAM,CAAC,SAAS,CAAC,QAAkB;YACjC,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;gBACvB,MAAM,IAAI,KAAK,CACb,iBAAiB,QAAQ,CAAC,MAAM,oCAAoC,C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E,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1D,SAAC,GAAW,CAAC,CAAC;IACd,SAAC,GAAW,CAAC,CAAC;IACd,eAAO,GAAW,OAAO,CAAC;IAmHnC,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
@@ -48,11 +48,6 @@ export declare function PackedStringFactory(l?: number): {
|
|
48
48
|
}): void;
|
49
49
|
packed: import("o1js/dist/node/lib/field.js").Field;
|
50
50
|
};
|
51
|
-
/**
|
52
|
-
*
|
53
|
-
* @param f Field, packed with the information, as returned by #pack
|
54
|
-
* @returns Array of Character
|
55
|
-
*/
|
56
51
|
type: import("o1js/dist/node/bindings/lib/generic.js").GenericProvableExtendedPure<{
|
57
52
|
packed: import("o1js/dist/node/lib/field.js").Field;
|
58
53
|
}, {
|
@@ -62,7 +57,11 @@ export declare function PackedStringFactory(l?: number): {
|
|
62
57
|
bitSize: bigint;
|
63
58
|
checkPack(unpacked: Character[]): void;
|
64
59
|
pack(unpacked: Character[]): import("o1js/dist/node/lib/field.js").Field;
|
65
|
-
unpackToBigints(f: import("o1js/dist/node/lib/field.js").Field): bigint[];
|
60
|
+
unpackToBigints(f: import("o1js/dist/node/lib/field.js").Field): bigint[]; /**
|
61
|
+
*
|
62
|
+
* @param fields Array of Fields, containing packed Characters
|
63
|
+
* @returns Array of Character
|
64
|
+
*/
|
66
65
|
_isStruct: true;
|
67
66
|
toFields: (value: {
|
68
67
|
packed: import("o1js/dist/node/lib/field.js").Field;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "o1js-pack",
|
3
|
-
"version": "0.5.
|
3
|
+
"version": "0.5.2",
|
4
4
|
"description": "",
|
5
5
|
"author": "45930",
|
6
6
|
"license": "Apache-2.0",
|
@@ -40,9 +40,11 @@
|
|
40
40
|
"husky": "^7.0.1",
|
41
41
|
"jest": "^27.3.1",
|
42
42
|
"lint-staged": "^11.0.1",
|
43
|
-
"o1js": "^0.15.1",
|
44
43
|
"prettier": "^2.3.2",
|
45
44
|
"ts-jest": "^27.0.7",
|
46
45
|
"typescript": "^4.7.2"
|
46
|
+
},
|
47
|
+
"peerDependencies": {
|
48
|
+
"o1js": "^0.16.0"
|
47
49
|
}
|
48
50
|
}
|