o1js-pack 0.5.4 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@ jobs:
14
14
  - name: Set up NodeJS
15
15
  uses: actions/setup-node@v2
16
16
  with:
17
- node-version: '16'
17
+ node-version: '20'
18
18
  - name: Git checkout
19
19
  uses: actions/checkout@v2
20
20
  - name: NPM ci, build, & test
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## v0.7
2
+
3
+ - Upgrage o1js to version 1.3.1
4
+
5
+ ## v0.6
6
+
7
+ - Upgrading to o1js version 0.18.0
8
+ - Updated tests and examples to use async circuits
9
+
1
10
  ## v0.5
2
11
 
3
12
  - Making PackedString class 31 characters instead of 15
@@ -5,13 +5,15 @@ export declare function PackingPlant<A, T extends InferProvable<A> = InferProvab
5
5
  */
6
6
  toFields(): Array<Field>;
7
7
  assertEquals(other: any): void;
8
- packed: import("o1js/dist/node/lib/field").Field;
8
+ packed: import("o1js/dist/node/lib/provable/field").Field;
9
9
  }) & {
10
10
  type: import("o1js/dist/node/bindings/lib/generic").GenericProvableExtendedPure<{
11
- packed: import("o1js/dist/node/lib/field").Field;
11
+ packed: import("o1js/dist/node/lib/provable/field").Field;
12
+ }, {
13
+ packed: bigint;
12
14
  }, {
13
15
  packed: string;
14
- }, import("o1js/dist/node/lib/field").Field>;
16
+ }, import("o1js/dist/node/lib/provable/field").Field>;
15
17
  l: number;
16
18
  bitSize: bigint;
17
19
  extractField(input: T): Field;
@@ -37,36 +39,52 @@ export declare function PackingPlant<A, T extends InferProvable<A> = InferProvab
37
39
  unpackToBigints(f: Field): Array<bigint>;
38
40
  _isStruct: true;
39
41
  toFields: (value: {
40
- packed: import("o1js/dist/node/lib/field").Field;
41
- }) => import("o1js/dist/node/lib/field").Field[];
42
+ packed: import("o1js/dist/node/lib/provable/field").Field;
43
+ }) => import("o1js/dist/node/lib/provable/field").Field[];
42
44
  toAuxiliary: (value?: {
43
- packed: import("o1js/dist/node/lib/field").Field;
45
+ packed: import("o1js/dist/node/lib/provable/field").Field;
44
46
  } | undefined) => any[];
45
- fromFields: (fields: import("o1js/dist/node/lib/field").Field[]) => {
46
- packed: import("o1js/dist/node/lib/field").Field;
47
- };
48
- sizeInFields(): number;
47
+ sizeInFields: () => number;
49
48
  check: (value: {
50
- packed: import("o1js/dist/node/lib/field").Field;
49
+ packed: import("o1js/dist/node/lib/provable/field").Field;
51
50
  }) => void;
51
+ toValue: (x: {
52
+ packed: import("o1js/dist/node/lib/provable/field").Field;
53
+ }) => {
54
+ packed: bigint;
55
+ };
56
+ fromValue: ((x: {
57
+ packed: import("o1js/dist/node/lib/provable/field").Field;
58
+ } | {
59
+ packed: bigint;
60
+ }) => {
61
+ packed: import("o1js/dist/node/lib/provable/field").Field;
62
+ }) & ((value: {
63
+ packed: string | number | bigint | import("o1js/dist/node/lib/provable/field").Field;
64
+ }) => {
65
+ packed: import("o1js/dist/node/lib/provable/field").Field;
66
+ });
67
+ fromFields: (fields: import("o1js/dist/node/lib/provable/field").Field[]) => {
68
+ packed: import("o1js/dist/node/lib/provable/field").Field;
69
+ };
52
70
  toInput: (x: {
53
- packed: import("o1js/dist/node/lib/field").Field;
71
+ packed: import("o1js/dist/node/lib/provable/field").Field;
54
72
  }) => {
55
- fields?: import("o1js/dist/node/lib/field").Field[] | undefined;
56
- packed?: [import("o1js/dist/node/lib/field").Field, number][] | undefined;
73
+ fields?: Field[] | undefined;
74
+ packed?: [Field, number][] | undefined;
57
75
  };
58
76
  toJSON: (x: {
59
- packed: import("o1js/dist/node/lib/field").Field;
77
+ packed: import("o1js/dist/node/lib/provable/field").Field;
60
78
  }) => {
61
79
  packed: string;
62
80
  };
63
81
  fromJSON: (x: {
64
82
  packed: string;
65
83
  }) => {
66
- packed: import("o1js/dist/node/lib/field").Field;
84
+ packed: import("o1js/dist/node/lib/provable/field").Field;
67
85
  };
68
86
  empty: () => {
69
- packed: import("o1js/dist/node/lib/field").Field;
87
+ packed: import("o1js/dist/node/lib/provable/field").Field;
70
88
  };
71
89
  };
72
90
  export declare function MultiPackingPlant<A, T extends InferProvable<A> = InferProvable<A>>(elementType: A, l: number, bitSize: bigint): (abstract new (packed: Array<Field>) => {
@@ -75,13 +93,15 @@ export declare function MultiPackingPlant<A, T extends InferProvable<A> = InferP
75
93
  */
76
94
  toFields(): Array<Field>;
77
95
  assertEquals(other: any): void;
78
- packed: import("o1js/dist/node/lib/field").Field[];
96
+ packed: import("o1js/dist/node/lib/provable/field").Field[];
79
97
  }) & {
80
98
  type: import("o1js/dist/node/bindings/lib/generic").GenericProvableExtendedPure<{
81
- packed: import("o1js/dist/node/lib/field").Field[];
99
+ packed: import("o1js/dist/node/lib/provable/field").Field[];
100
+ }, {
101
+ packed: bigint[];
82
102
  }, {
83
103
  packed: string[];
84
- }, import("o1js/dist/node/lib/field").Field>;
104
+ }, import("o1js/dist/node/lib/provable/field").Field>;
85
105
  l: number;
86
106
  n: number;
87
107
  bitSize: bigint;
@@ -112,35 +132,51 @@ export declare function MultiPackingPlant<A, T extends InferProvable<A> = InferP
112
132
  unpackToBigints(fields: Array<Field>): Array<bigint>;
113
133
  _isStruct: true;
114
134
  toFields: (value: {
115
- packed: import("o1js/dist/node/lib/field").Field[];
116
- }) => import("o1js/dist/node/lib/field").Field[];
135
+ packed: import("o1js/dist/node/lib/provable/field").Field[];
136
+ }) => import("o1js/dist/node/lib/provable/field").Field[];
117
137
  toAuxiliary: (value?: {
118
- packed: import("o1js/dist/node/lib/field").Field[];
138
+ packed: import("o1js/dist/node/lib/provable/field").Field[];
119
139
  } | undefined) => any[];
120
- fromFields: (fields: import("o1js/dist/node/lib/field").Field[]) => {
121
- packed: import("o1js/dist/node/lib/field").Field[];
122
- };
123
- sizeInFields(): number;
140
+ sizeInFields: () => number;
124
141
  check: (value: {
125
- packed: import("o1js/dist/node/lib/field").Field[];
142
+ packed: import("o1js/dist/node/lib/provable/field").Field[];
126
143
  }) => void;
144
+ toValue: (x: {
145
+ packed: import("o1js/dist/node/lib/provable/field").Field[];
146
+ }) => {
147
+ packed: bigint[];
148
+ };
149
+ fromValue: ((x: {
150
+ packed: import("o1js/dist/node/lib/provable/field").Field[];
151
+ } | {
152
+ packed: bigint[];
153
+ }) => {
154
+ packed: import("o1js/dist/node/lib/provable/field").Field[];
155
+ }) & ((value: {
156
+ packed: import("o1js/dist/node/lib/provable/field").Field[] | bigint[];
157
+ }) => {
158
+ packed: import("o1js/dist/node/lib/provable/field").Field[];
159
+ });
160
+ fromFields: (fields: import("o1js/dist/node/lib/provable/field").Field[]) => {
161
+ packed: import("o1js/dist/node/lib/provable/field").Field[];
162
+ };
127
163
  toInput: (x: {
128
- packed: import("o1js/dist/node/lib/field").Field[];
164
+ packed: import("o1js/dist/node/lib/provable/field").Field[];
129
165
  }) => {
130
- fields?: import("o1js/dist/node/lib/field").Field[] | undefined;
131
- packed?: [import("o1js/dist/node/lib/field").Field, number][] | undefined;
166
+ fields?: Field[] | undefined;
167
+ packed?: [Field, number][] | undefined;
132
168
  };
133
169
  toJSON: (x: {
134
- packed: import("o1js/dist/node/lib/field").Field[];
170
+ packed: import("o1js/dist/node/lib/provable/field").Field[];
135
171
  }) => {
136
172
  packed: string[];
137
173
  };
138
174
  fromJSON: (x: {
139
175
  packed: string[];
140
176
  }) => {
141
- packed: import("o1js/dist/node/lib/field").Field[];
177
+ packed: import("o1js/dist/node/lib/provable/field").Field[];
142
178
  };
143
179
  empty: () => {
144
- packed: import("o1js/dist/node/lib/field").Field[];
180
+ packed: import("o1js/dist/node/lib/provable/field").Field[];
145
181
  };
146
182
  };
@@ -1,4 +1,4 @@
1
- import { Field, Struct, provable, Provable, } from 'o1js';
1
+ import { Field, Struct, provable, Provable } from 'o1js';
2
2
  const MAX_BITS_PER_FIELD = 254n;
3
3
  export function PackingPlant(elementType, l, bitSize) {
4
4
  if (bitSize * BigInt(l) > MAX_BITS_PER_FIELD) {
@@ -1 +1 @@
1
- {"version":3,"file":"PackingPlant.js","sourceRoot":"","sources":["../../../src/lib/PackingPlant.ts"],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C,CAAC;IACd,eAAO,GAAW,OAAO,CAAC;IAmHnC,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -1,14 +1,14 @@
1
1
  import { Field, Bool } from 'o1js';
2
2
  export declare function PackedBoolFactory(l?: number): {
3
- new (packed: import("o1js/dist/node/lib/field.js").Field): {
3
+ new (packed: Field): {
4
4
  toBooleans(): Array<boolean>;
5
- toFields(): import("o1js/dist/node/lib/field.js").Field[];
5
+ toFields(): Array<Field>;
6
6
  assertEquals(other: {
7
- toFields(): import("o1js/dist/node/lib/field.js").Field[];
7
+ toFields(): Array<Field>;
8
8
  assertEquals(other: any): void;
9
- packed: import("o1js/dist/node/lib/field.js").Field;
9
+ packed: import("o1js/dist/node/lib/provable/field.js").Field;
10
10
  }): void;
11
- packed: import("o1js/dist/node/lib/field.js").Field;
11
+ packed: import("o1js/dist/node/lib/provable/field.js").Field;
12
12
  };
13
13
  extractField(input: Bool): Field;
14
14
  sizeInBits(): bigint;
@@ -25,13 +25,13 @@ export declare function PackedBoolFactory(l?: number): {
25
25
  */
26
26
  fromBools(bools: Array<Bool>): {
27
27
  toBooleans(): Array<boolean>;
28
- toFields(): import("o1js/dist/node/lib/field.js").Field[];
28
+ toFields(): Array<Field>;
29
29
  assertEquals(other: {
30
- toFields(): import("o1js/dist/node/lib/field.js").Field[];
30
+ toFields(): Array<Field>;
31
31
  assertEquals(other: any): void;
32
- packed: import("o1js/dist/node/lib/field.js").Field;
32
+ packed: import("o1js/dist/node/lib/provable/field.js").Field;
33
33
  }): void;
34
- packed: import("o1js/dist/node/lib/field.js").Field;
34
+ packed: import("o1js/dist/node/lib/provable/field.js").Field;
35
35
  };
36
36
  /**
37
37
  *
@@ -40,55 +40,73 @@ export declare function PackedBoolFactory(l?: number): {
40
40
  */
41
41
  fromBooleans(booleans: Array<boolean>): {
42
42
  toBooleans(): Array<boolean>;
43
- toFields(): import("o1js/dist/node/lib/field.js").Field[];
43
+ toFields(): Array<Field>;
44
44
  assertEquals(other: {
45
- toFields(): import("o1js/dist/node/lib/field.js").Field[];
45
+ toFields(): Array<Field>;
46
46
  assertEquals(other: any): void;
47
- packed: import("o1js/dist/node/lib/field.js").Field;
47
+ packed: import("o1js/dist/node/lib/provable/field.js").Field;
48
48
  }): void;
49
- packed: import("o1js/dist/node/lib/field.js").Field;
49
+ packed: import("o1js/dist/node/lib/provable/field.js").Field;
50
50
  };
51
51
  type: import("o1js/dist/node/bindings/lib/generic.js").GenericProvableExtendedPure<{
52
- packed: import("o1js/dist/node/lib/field.js").Field;
52
+ packed: import("o1js/dist/node/lib/provable/field.js").Field;
53
+ }, {
54
+ packed: bigint;
53
55
  }, {
54
56
  packed: string;
55
- }, import("o1js/dist/node/lib/field.js").Field>;
57
+ }, import("o1js/dist/node/lib/provable/field.js").Field>;
56
58
  l: number;
57
59
  bitSize: bigint;
58
- checkPack(unpacked: import("o1js/dist/node/lib/bool.js").Bool[]): void;
59
- pack(unpacked: import("o1js/dist/node/lib/bool.js").Bool[]): import("o1js/dist/node/lib/field.js").Field;
60
- unpackToBigints(f: import("o1js/dist/node/lib/field.js").Field): bigint[];
60
+ checkPack(unpacked: import("o1js/dist/node/lib/provable/bool.js").Bool[]): void;
61
+ pack(unpacked: import("o1js/dist/node/lib/provable/bool.js").Bool[]): Field;
62
+ unpackToBigints(f: Field): Array<bigint>;
61
63
  _isStruct: true;
62
64
  toFields: (value: {
63
- packed: import("o1js/dist/node/lib/field.js").Field;
64
- }) => import("o1js/dist/node/lib/field.js").Field[];
65
+ packed: import("o1js/dist/node/lib/provable/field.js").Field;
66
+ }) => import("o1js/dist/node/lib/provable/field.js").Field[];
65
67
  toAuxiliary: (value?: {
66
- packed: import("o1js/dist/node/lib/field.js").Field;
68
+ packed: import("o1js/dist/node/lib/provable/field.js").Field;
67
69
  } | undefined) => any[];
68
- fromFields: (fields: import("o1js/dist/node/lib/field.js").Field[]) => {
69
- packed: import("o1js/dist/node/lib/field.js").Field;
70
- };
71
- sizeInFields(): number;
70
+ sizeInFields: () => number;
72
71
  check: (value: {
73
- packed: import("o1js/dist/node/lib/field.js").Field;
72
+ packed: import("o1js/dist/node/lib/provable/field.js").Field;
74
73
  }) => void;
74
+ toValue: (x: {
75
+ packed: import("o1js/dist/node/lib/provable/field.js").Field;
76
+ }) => {
77
+ packed: bigint;
78
+ };
79
+ fromValue: ((x: {
80
+ packed: import("o1js/dist/node/lib/provable/field.js").Field;
81
+ } | {
82
+ packed: bigint;
83
+ }) => {
84
+ packed: import("o1js/dist/node/lib/provable/field.js").Field;
85
+ }) & ((value: {
86
+ packed: string | number | bigint | import("o1js/dist/node/lib/provable/field.js").Field;
87
+ }) => {
88
+ packed: import("o1js/dist/node/lib/provable/field.js").Field;
89
+ });
90
+ fromFields: (fields: import("o1js/dist/node/lib/provable/field.js").Field[]) => {
91
+ packed: import("o1js/dist/node/lib/provable/field.js").Field;
92
+ };
75
93
  toInput: (x: {
76
- packed: import("o1js/dist/node/lib/field.js").Field;
94
+ packed: import("o1js/dist/node/lib/provable/field.js").Field;
77
95
  }) => {
78
- fields?: import("o1js/dist/node/lib/field.js").Field[] | undefined;
79
- packed?: [import("o1js/dist/node/lib/field.js").Field, number][] | undefined;
96
+ fields?: Field[] | undefined;
97
+ packed?: [Field, number][] | undefined;
80
98
  };
81
99
  toJSON: (x: {
82
- packed: import("o1js/dist/node/lib/field.js").Field;
100
+ packed: import("o1js/dist/node/lib/provable/field.js").Field;
83
101
  }) => {
84
102
  packed: string;
85
103
  };
86
104
  fromJSON: (x: {
87
105
  packed: string;
88
106
  }) => {
89
- packed: import("o1js/dist/node/lib/field.js").Field;
107
+ packed: import("o1js/dist/node/lib/provable/field.js").Field;
90
108
  };
91
109
  empty: () => {
92
- packed: import("o1js/dist/node/lib/field.js").Field;
110
+ packed: import("o1js/dist/node/lib/provable/field.js").Field;
93
111
  };
94
112
  };
@@ -63,13 +63,17 @@ describe('PackedBool', () => {
63
63
  packedBool.assertEquals(outsidePackedBool);
64
64
  });
65
65
  }).not.toThrow();
66
- expect(() => {
67
- Provable.runAndCheck(() => {
68
- const fakePacked = outsidePackedBool.packed.add(32);
69
- const packedBool = new PackedBool(fakePacked);
70
- packedBool.assertEquals(outsidePackedBool);
71
- });
72
- }).toThrow();
66
+ // TODO: This test should not be in the "provable" block since it's not in the runAndCheck
67
+ // It seems like failures in the runAndCheck can't be tested for with #toThrow
68
+ try {
69
+ const fakePacked = outsidePackedBool.packed.add(32);
70
+ const packedBool = new PackedBool(fakePacked);
71
+ packedBool.assertEquals(outsidePackedBool);
72
+ fail('Expected to throw Field.assertEquals error');
73
+ }
74
+ catch (e) {
75
+ expect(e.message).toContain('Field.assertEquals');
76
+ }
73
77
  });
74
78
  });
75
79
  });
@@ -1 +1 @@
1
- {"version":3,"file":"PackedBool.test.js","sourceRoot":"","sources":["../../../../src/lib/packed-types/PackedBool.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC1B,MAAM,QAAQ,GAAG,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAC3D,MAAM,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3C,MAAM,UAAW,SAAQ,iBAAiB,EAAE;KAAG;IAC/C,QAAQ,CAAC,wBAAwB,EAAE,GAAG,EAAE;QACtC,EAAE,CAAC,eAAe,EAAE,GAAG,EAAE;YACvB,MAAM,YAAY,GAAG,UAAU,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;YACvD,MAAM,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;Q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