@nucypher/taco 0.7.0-alpha.4 → 0.7.0-alpha.5
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/cjs/conditions/schemas/contract.d.ts +14 -14
- package/dist/cjs/conditions/schemas/rpc.d.ts +12 -12
- package/dist/cjs/conditions/schemas/time.d.ts +12 -12
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/sign.d.ts +6 -1
- package/dist/cjs/sign.js +15 -10
- package/dist/cjs/sign.js.map +1 -1
- package/dist/es/conditions/schemas/contract.d.ts +14 -14
- package/dist/es/conditions/schemas/rpc.d.ts +12 -12
- package/dist/es/conditions/schemas/time.d.ts +12 -12
- package/dist/es/index.d.ts +2 -2
- package/dist/es/index.js +1 -1
- package/dist/es/index.js.map +1 -1
- package/dist/es/sign.d.ts +6 -1
- package/dist/es/sign.js +15 -10
- package/dist/es/sign.js.map +1 -1
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.es.tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -162,22 +162,22 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
162
162
|
operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str"]>;
|
|
163
163
|
value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
164
164
|
}, "strip", z.ZodTypeAny, {
|
|
165
|
-
operation: "float" | "
|
|
165
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
166
166
|
value?: any;
|
|
167
167
|
}, {
|
|
168
|
-
operation: "float" | "
|
|
168
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
169
169
|
value?: any;
|
|
170
170
|
}>, {
|
|
171
|
-
operation: "float" | "
|
|
171
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
172
172
|
value?: any;
|
|
173
173
|
}, {
|
|
174
|
-
operation: "float" | "
|
|
174
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
175
175
|
value?: any;
|
|
176
176
|
}>, {
|
|
177
|
-
operation: "float" | "
|
|
177
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
178
178
|
value?: any;
|
|
179
179
|
}, {
|
|
180
|
-
operation: "float" | "
|
|
180
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
181
181
|
value?: any;
|
|
182
182
|
}>, "many">>;
|
|
183
183
|
} & {
|
|
@@ -187,7 +187,7 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
187
187
|
value?: any;
|
|
188
188
|
index?: number | undefined;
|
|
189
189
|
operations?: {
|
|
190
|
-
operation: "float" | "
|
|
190
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
191
191
|
value?: any;
|
|
192
192
|
}[] | undefined;
|
|
193
193
|
}, {
|
|
@@ -195,7 +195,7 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
195
195
|
value?: any;
|
|
196
196
|
index?: number | undefined;
|
|
197
197
|
operations?: {
|
|
198
|
-
operation: "float" | "
|
|
198
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
199
199
|
value?: any;
|
|
200
200
|
}[] | undefined;
|
|
201
201
|
}>, {
|
|
@@ -203,7 +203,7 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
203
203
|
value?: any;
|
|
204
204
|
index?: number | undefined;
|
|
205
205
|
operations?: {
|
|
206
|
-
operation: "float" | "
|
|
206
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
207
207
|
value?: any;
|
|
208
208
|
}[] | undefined;
|
|
209
209
|
}, {
|
|
@@ -211,7 +211,7 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
211
211
|
value?: any;
|
|
212
212
|
index?: number | undefined;
|
|
213
213
|
operations?: {
|
|
214
|
-
operation: "float" | "
|
|
214
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
215
215
|
value?: any;
|
|
216
216
|
}[] | undefined;
|
|
217
217
|
}>;
|
|
@@ -367,7 +367,7 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
367
367
|
value?: any;
|
|
368
368
|
index?: number | undefined;
|
|
369
369
|
operations?: {
|
|
370
|
-
operation: "float" | "
|
|
370
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
371
371
|
value?: any;
|
|
372
372
|
}[] | undefined;
|
|
373
373
|
};
|
|
@@ -401,7 +401,7 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
401
401
|
value?: any;
|
|
402
402
|
index?: number | undefined;
|
|
403
403
|
operations?: {
|
|
404
|
-
operation: "float" | "
|
|
404
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
405
405
|
value?: any;
|
|
406
406
|
}[] | undefined;
|
|
407
407
|
};
|
|
@@ -437,7 +437,7 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
437
437
|
value?: any;
|
|
438
438
|
index?: number | undefined;
|
|
439
439
|
operations?: {
|
|
440
|
-
operation: "float" | "
|
|
440
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
441
441
|
value?: any;
|
|
442
442
|
}[] | undefined;
|
|
443
443
|
};
|
|
@@ -471,7 +471,7 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
471
471
|
value?: any;
|
|
472
472
|
index?: number | undefined;
|
|
473
473
|
operations?: {
|
|
474
|
-
operation: "float" | "
|
|
474
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
475
475
|
value?: any;
|
|
476
476
|
}[] | undefined;
|
|
477
477
|
};
|
|
@@ -12,22 +12,22 @@ export declare const rpcConditionSchema: z.ZodObject<{} & {
|
|
|
12
12
|
operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str"]>;
|
|
13
13
|
value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
operation: "float" | "
|
|
15
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
16
16
|
value?: any;
|
|
17
17
|
}, {
|
|
18
|
-
operation: "float" | "
|
|
18
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
19
19
|
value?: any;
|
|
20
20
|
}>, {
|
|
21
|
-
operation: "float" | "
|
|
21
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
22
22
|
value?: any;
|
|
23
23
|
}, {
|
|
24
|
-
operation: "float" | "
|
|
24
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
25
25
|
value?: any;
|
|
26
26
|
}>, {
|
|
27
|
-
operation: "float" | "
|
|
27
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
28
28
|
value?: any;
|
|
29
29
|
}, {
|
|
30
|
-
operation: "float" | "
|
|
30
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
31
31
|
value?: any;
|
|
32
32
|
}>, "many">>;
|
|
33
33
|
} & {
|
|
@@ -37,7 +37,7 @@ export declare const rpcConditionSchema: z.ZodObject<{} & {
|
|
|
37
37
|
value?: any;
|
|
38
38
|
index?: number | undefined;
|
|
39
39
|
operations?: {
|
|
40
|
-
operation: "float" | "
|
|
40
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
41
41
|
value?: any;
|
|
42
42
|
}[] | undefined;
|
|
43
43
|
}, {
|
|
@@ -45,7 +45,7 @@ export declare const rpcConditionSchema: z.ZodObject<{} & {
|
|
|
45
45
|
value?: any;
|
|
46
46
|
index?: number | undefined;
|
|
47
47
|
operations?: {
|
|
48
|
-
operation: "float" | "
|
|
48
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
49
49
|
value?: any;
|
|
50
50
|
}[] | undefined;
|
|
51
51
|
}>, {
|
|
@@ -53,7 +53,7 @@ export declare const rpcConditionSchema: z.ZodObject<{} & {
|
|
|
53
53
|
value?: any;
|
|
54
54
|
index?: number | undefined;
|
|
55
55
|
operations?: {
|
|
56
|
-
operation: "float" | "
|
|
56
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
57
57
|
value?: any;
|
|
58
58
|
}[] | undefined;
|
|
59
59
|
}, {
|
|
@@ -61,7 +61,7 @@ export declare const rpcConditionSchema: z.ZodObject<{} & {
|
|
|
61
61
|
value?: any;
|
|
62
62
|
index?: number | undefined;
|
|
63
63
|
operations?: {
|
|
64
|
-
operation: "float" | "
|
|
64
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
65
65
|
value?: any;
|
|
66
66
|
}[] | undefined;
|
|
67
67
|
}>;
|
|
@@ -72,7 +72,7 @@ export declare const rpcConditionSchema: z.ZodObject<{} & {
|
|
|
72
72
|
value?: any;
|
|
73
73
|
index?: number | undefined;
|
|
74
74
|
operations?: {
|
|
75
|
-
operation: "float" | "
|
|
75
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
76
76
|
value?: any;
|
|
77
77
|
}[] | undefined;
|
|
78
78
|
};
|
|
@@ -85,7 +85,7 @@ export declare const rpcConditionSchema: z.ZodObject<{} & {
|
|
|
85
85
|
value?: any;
|
|
86
86
|
index?: number | undefined;
|
|
87
87
|
operations?: {
|
|
88
|
-
operation: "float" | "
|
|
88
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
89
89
|
value?: any;
|
|
90
90
|
}[] | undefined;
|
|
91
91
|
};
|
|
@@ -12,22 +12,22 @@ export declare const timeConditionSchema: z.ZodObject<{
|
|
|
12
12
|
operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str"]>;
|
|
13
13
|
value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
operation: "float" | "
|
|
15
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
16
16
|
value?: any;
|
|
17
17
|
}, {
|
|
18
|
-
operation: "float" | "
|
|
18
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
19
19
|
value?: any;
|
|
20
20
|
}>, {
|
|
21
|
-
operation: "float" | "
|
|
21
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
22
22
|
value?: any;
|
|
23
23
|
}, {
|
|
24
|
-
operation: "float" | "
|
|
24
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
25
25
|
value?: any;
|
|
26
26
|
}>, {
|
|
27
|
-
operation: "float" | "
|
|
27
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
28
28
|
value?: any;
|
|
29
29
|
}, {
|
|
30
|
-
operation: "float" | "
|
|
30
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
31
31
|
value?: any;
|
|
32
32
|
}>, "many">>;
|
|
33
33
|
} & {
|
|
@@ -37,7 +37,7 @@ export declare const timeConditionSchema: z.ZodObject<{
|
|
|
37
37
|
value?: any;
|
|
38
38
|
index?: number | undefined;
|
|
39
39
|
operations?: {
|
|
40
|
-
operation: "float" | "
|
|
40
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
41
41
|
value?: any;
|
|
42
42
|
}[] | undefined;
|
|
43
43
|
}, {
|
|
@@ -45,7 +45,7 @@ export declare const timeConditionSchema: z.ZodObject<{
|
|
|
45
45
|
value?: any;
|
|
46
46
|
index?: number | undefined;
|
|
47
47
|
operations?: {
|
|
48
|
-
operation: "float" | "
|
|
48
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
49
49
|
value?: any;
|
|
50
50
|
}[] | undefined;
|
|
51
51
|
}>, {
|
|
@@ -53,7 +53,7 @@ export declare const timeConditionSchema: z.ZodObject<{
|
|
|
53
53
|
value?: any;
|
|
54
54
|
index?: number | undefined;
|
|
55
55
|
operations?: {
|
|
56
|
-
operation: "float" | "
|
|
56
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
57
57
|
value?: any;
|
|
58
58
|
}[] | undefined;
|
|
59
59
|
}, {
|
|
@@ -61,7 +61,7 @@ export declare const timeConditionSchema: z.ZodObject<{
|
|
|
61
61
|
value?: any;
|
|
62
62
|
index?: number | undefined;
|
|
63
63
|
operations?: {
|
|
64
|
-
operation: "float" | "
|
|
64
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
65
65
|
value?: any;
|
|
66
66
|
}[] | undefined;
|
|
67
67
|
}>;
|
|
@@ -72,7 +72,7 @@ export declare const timeConditionSchema: z.ZodObject<{
|
|
|
72
72
|
value?: any;
|
|
73
73
|
index?: number | undefined;
|
|
74
74
|
operations?: {
|
|
75
|
-
operation: "float" | "
|
|
75
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
76
76
|
value?: any;
|
|
77
77
|
}[] | undefined;
|
|
78
78
|
};
|
|
@@ -84,7 +84,7 @@ export declare const timeConditionSchema: z.ZodObject<{
|
|
|
84
84
|
value?: any;
|
|
85
85
|
index?: number | undefined;
|
|
86
86
|
operations?: {
|
|
87
|
-
operation: "float" | "
|
|
87
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
88
88
|
value?: any;
|
|
89
89
|
}[] | undefined;
|
|
90
90
|
};
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { DkgPublicKey, ThresholdMessageKit } from '@nucypher/nucypher-core';
|
|
2
|
-
export { Domain, domains, fromBytes, getPorterUris, initialize, toBytes, toHexString, } from '@nucypher/shared';
|
|
2
|
+
export { Domain, PackedUserOperationToSign, UserOperationToSign, domains, fromBytes, getPorterUris, initialize, toBytes, toHexString, } from '@nucypher/shared';
|
|
3
3
|
export * as conditions from './conditions';
|
|
4
|
-
export { setSigningCohortConditions, signUserOp } from './sign';
|
|
4
|
+
export { SignResult, TacoSignature, setSigningCohortConditions, signUserOp, } from './sign';
|
|
5
5
|
export { decrypt, encrypt, encryptWithPublicKey } from './taco';
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yDAA4E;AAAnE,6GAAA,YAAY,OAAA;AAAE,oHAAA,mBAAmB,OAAA;AAC1C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yDAA4E;AAAnE,6GAAA,YAAY,OAAA;AAAE,oHAAA,mBAAmB,OAAA;AAC1C,2CAU0B;AANxB,iGAAA,OAAO,OAAA;AACP,mGAAA,SAAS,OAAA;AACT,uGAAA,aAAa,OAAA;AACb,oGAAA,UAAU,OAAA;AACV,iGAAA,OAAO,OAAA;AACP,qGAAA,WAAW,OAAA;AAGb,2DAA2C;AAE3C,+BAKgB;AAFd,kHAAA,0BAA0B,OAAA;AAC1B,kGAAA,UAAU,OAAA;AAEZ,+BAAgE;AAAvD,+FAAA,OAAO,OAAA;AAAE,+FAAA,OAAO,OAAA;AAAE,4GAAA,oBAAoB,OAAA"}
|
package/dist/cjs/sign.d.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { Domain, PackedUserOperationToSign,
|
|
1
|
+
import { Domain, PackedUserOperationToSign, UserOperationToSign } from '@nucypher/shared';
|
|
2
2
|
import { ethers } from 'ethers';
|
|
3
3
|
import { Condition } from './conditions/condition';
|
|
4
4
|
import { ConditionContext } from './conditions/context';
|
|
5
|
+
export type TacoSignature = {
|
|
6
|
+
messageHash: string;
|
|
7
|
+
signature: string;
|
|
8
|
+
signerAddress: string;
|
|
9
|
+
};
|
|
5
10
|
export type SignResult = {
|
|
6
11
|
messageHash: string;
|
|
7
12
|
aggregatedSignature: string;
|
package/dist/cjs/sign.js
CHANGED
|
@@ -8,16 +8,21 @@ const ethers_1 = require("ethers");
|
|
|
8
8
|
const condition_expr_1 = require("./conditions/condition-expr");
|
|
9
9
|
const ERR_INSUFFICIENT_SIGNATURES = (errors) => `Threshold of signatures not met; TACo signing failed with errors: ${JSON.stringify(errors)}`;
|
|
10
10
|
const ERR_MISMATCHED_HASHES = (hashToSignatures) => `Threshold of signatures not met; multiple mismatched hashes found: ${JSON.stringify(Object.fromEntries(hashToSignatures.entries()))}`;
|
|
11
|
-
function aggregateSignatures(
|
|
12
|
-
// Aggregate hex signatures by concatenating them; being careful to
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
function aggregateSignatures(signatures, threshold) {
|
|
12
|
+
// Aggregate hex signatures by concatenating them; being careful to sort
|
|
13
|
+
// and remove the '0x' prefix from each signature except the first one.
|
|
14
|
+
// sort by signer address
|
|
15
|
+
const sortedSignatures = [...signatures]
|
|
16
|
+
.sort((a, b) => a.signerAddress
|
|
17
|
+
.toLowerCase()
|
|
18
|
+
.localeCompare(b.signerAddress.toLowerCase()))
|
|
19
|
+
.map((sig) => sig.signature);
|
|
20
|
+
const thresholdSignatures = sortedSignatures.slice(0, threshold);
|
|
21
|
+
if (thresholdSignatures.length === 1) {
|
|
22
|
+
return thresholdSignatures[0];
|
|
18
23
|
}
|
|
19
24
|
// Concatenate signatures
|
|
20
|
-
const allBytes =
|
|
25
|
+
const allBytes = thresholdSignatures.flatMap((sig) => Array.from((0, shared_1.fromHexString)(sig)));
|
|
21
26
|
return `0x${(0, shared_1.toHexString)(new Uint8Array(allBytes))}`;
|
|
22
27
|
}
|
|
23
28
|
async function makeSigningRequests(cohortId, chainId, signers, userOp, aaVersion, conditionContext) {
|
|
@@ -72,7 +77,7 @@ async function signUserOp(provider, domain, cohortId, chainId, userOp, aaVersion
|
|
|
72
77
|
throw new Error(ERR_INSUFFICIENT_SIGNATURES(errors));
|
|
73
78
|
}
|
|
74
79
|
const signaturesToAggregate = collectSignatures(encryptedResponses, sharedSecrets, threshold);
|
|
75
|
-
const aggregatedSignature = aggregateSignatures(signaturesToAggregate, threshold);
|
|
80
|
+
const aggregatedSignature = aggregateSignatures(Object.values(signaturesToAggregate), threshold);
|
|
76
81
|
return {
|
|
77
82
|
messageHash: Object.values(signaturesToAggregate)[0].messageHash,
|
|
78
83
|
aggregatedSignature,
|
|
@@ -124,7 +129,7 @@ function collectSignatures(encryptedResponses, sharedSecrets, threshold) {
|
|
|
124
129
|
}
|
|
125
130
|
// Insufficient signatures for a message hash to meet the threshold
|
|
126
131
|
if (!signaturesToAggregate) {
|
|
127
|
-
//we have multiple hashes, which means we have mismatched hashes from different nodes
|
|
132
|
+
// we have multiple hashes, which means we have mismatched hashes from different nodes
|
|
128
133
|
// we don't really expect this to happen (other than some malicious nodes)
|
|
129
134
|
console.error('Porter returned mismatched message hashes:', hashToSignatures);
|
|
130
135
|
throw new Error(ERR_MISMATCHED_HASHES(hashToSignatures));
|
package/dist/cjs/sign.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sign.js","sourceRoot":"","sources":["../../src/sign.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"sign.js","sourceRoot":"","sources":["../../src/sign.ts"],"names":[],"mappings":";;AA4JA,gCA8DC;AAED,gEAsBC;AAlPD,2DAQiC;AACjC,6CAa0B;AAC1B,mCAAgC;AAGhC,gEAAkE;AAGlE,MAAM,2BAA2B,GAAG,CAAC,MAAe,EAAE,EAAE,CACtD,qEAAqE,IAAI,CAAC,SAAS,CACjF,MAAM,CACP,EAAE,CAAC;AACN,MAAM,qBAAqB,GAAG,CAC5B,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Object<{
|
|
|
162
162
|
operation: z.ZodEnum<["+=", "-=", "*=", "/=", "%=", "index", "round", "abs", "avg", "ceil", "ethToWei", "floor", "len", "max", "min", "sum", "weiToEth", "bool", "float", "int", "str"]>;
|
|
163
163
|
value: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
|
|
164
164
|
}, "strip", z.ZodTypeAny, {
|
|
165
|
-
operation: "float" | "
|
|
165
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
166
166
|
value?: any;
|
|
167
167
|
}, {
|
|
168
|
-
operation: "float" | "
|
|
168
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
169
169
|
value?: any;
|
|
170
170
|
}>, {
|
|
171
|
-
operation: "float" | "
|
|
171
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
172
172
|
value?: any;
|
|
173
173
|
}, {
|
|
174
|
-
operation: "float" | "
|
|
174
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
175
175
|
value?: any;
|
|
176
176
|
}>, {
|
|
177
|
-
operation: "float" | "
|
|
177
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
178
178
|
value?: any;
|
|
179
179
|
}, {
|
|
180
|
-
operation: "float" | "
|
|
180
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
181
181
|
value?: any;
|
|
182
182
|
}>, "many">>;
|
|
183
183
|
} & {
|
|
@@ -187,7 +187,7 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
187
187
|
value?: any;
|
|
188
188
|
index?: number | undefined;
|
|
189
189
|
operations?: {
|
|
190
|
-
operation: "float" | "
|
|
190
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
191
191
|
value?: any;
|
|
192
192
|
}[] | undefined;
|
|
193
193
|
}, {
|
|
@@ -195,7 +195,7 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
195
195
|
value?: any;
|
|
196
196
|
index?: number | undefined;
|
|
197
197
|
operations?: {
|
|
198
|
-
operation: "float" | "
|
|
198
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
199
199
|
value?: any;
|
|
200
200
|
}[] | undefined;
|
|
201
201
|
}>, {
|
|
@@ -203,7 +203,7 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
203
203
|
value?: any;
|
|
204
204
|
index?: number | undefined;
|
|
205
205
|
operations?: {
|
|
206
|
-
operation: "float" | "
|
|
206
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
207
207
|
value?: any;
|
|
208
208
|
}[] | undefined;
|
|
209
209
|
}, {
|
|
@@ -211,7 +211,7 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
211
211
|
value?: any;
|
|
212
212
|
index?: number | undefined;
|
|
213
213
|
operations?: {
|
|
214
|
-
operation: "float" | "
|
|
214
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
215
215
|
value?: any;
|
|
216
216
|
}[] | undefined;
|
|
217
217
|
}>;
|
|
@@ -367,7 +367,7 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
367
367
|
value?: any;
|
|
368
368
|
index?: number | undefined;
|
|
369
369
|
operations?: {
|
|
370
|
-
operation: "float" | "
|
|
370
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
371
371
|
value?: any;
|
|
372
372
|
}[] | undefined;
|
|
373
373
|
};
|
|
@@ -401,7 +401,7 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
401
401
|
value?: any;
|
|
402
402
|
index?: number | undefined;
|
|
403
403
|
operations?: {
|
|
404
|
-
operation: "float" | "
|
|
404
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
405
405
|
value?: any;
|
|
406
406
|
}[] | undefined;
|
|
407
407
|
};
|
|
@@ -437,7 +437,7 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
437
437
|
value?: any;
|
|
438
438
|
index?: number | undefined;
|
|
439
439
|
operations?: {
|
|
440
|
-
operation: "float" | "
|
|
440
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
441
441
|
value?: any;
|
|
442
442
|
}[] | undefined;
|
|
443
443
|
};
|
|
@@ -471,7 +471,7 @@ export declare const contractConditionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
471
471
|
value?: any;
|
|
472
472
|
index?: number | undefined;
|
|
473
473
|
operations?: {
|
|
474
|
-
operation: "float" | "
|
|
474
|
+
operation: "float" | "+=" | "-=" | "*=" | "/=" | "%=" | "index" | "round" | "abs" | "avg" | "ceil" | "ethToWei" | "floor" | "len" | "max" | "min" | "sum" | "weiToEth" | "bool" | "int" | "str";
|
|
475
475
|
value?: any;
|
|
476
476
|
}[] | undefined;
|
|
477
477
|
};
|