@sig-net/midnight-contract 0.0.6 → 0.0.8
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/README.md +1 -1
- package/dist/managed/compiler/contract-info.json +148 -70
- package/dist/managed/compiler/contract-manifest.json +42 -42
- package/dist/managed/contract/index.d.ts +85 -68
- package/dist/managed/contract/index.js +559 -407
- package/dist/managed/contract/index.js.map +2 -2
- package/dist/managed/keys/postRespondBidirectional.prover +0 -0
- package/dist/managed/keys/postRespondBidirectional.verifier +0 -0
- package/dist/managed/keys/postSignatureResponse.prover +0 -0
- package/dist/managed/keys/postSignatureResponse.verifier +0 -0
- package/dist/managed/keys/signBidirectionalEvent.prover +0 -0
- package/dist/managed/keys/signBidirectionalEvent.verifier +0 -0
- package/dist/managed/zkir/postRespondBidirectional.bzkir +0 -0
- package/dist/managed/zkir/postRespondBidirectional.zkir +43 -131
- package/dist/managed/zkir/postSignatureResponse.bzkir +0 -0
- package/dist/managed/zkir/postSignatureResponse.zkir +20 -20
- package/dist/managed/zkir/signBidirectionalEvent.bzkir +0 -0
- package/dist/managed/zkir/signBidirectionalEvent.zkir +56 -0
- package/dist/witnesses.js +2 -2
- package/dist/witnesses.js.map +1 -1
- package/package.json +3 -3
- package/dist/managed/keys/notifyBidirectionalSignatureRequest.prover +0 -0
- package/dist/managed/keys/notifyBidirectionalSignatureRequest.verifier +0 -0
- package/dist/managed/zkir/notifyBidirectionalSignatureRequest.bzkir +0 -0
- package/dist/managed/zkir/notifyBidirectionalSignatureRequest.zkir +0 -27
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"file": "index.js",
|
|
4
4
|
"sourceRoot": "../../../",
|
|
5
|
-
"sources": ["src/signet-contract.compact"
|
|
5
|
+
"sources": ["src/signet-contract.compact"],
|
|
6
6
|
"names": [],
|
|
7
|
-
"mappings": "
|
|
7
|
+
"mappings": "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"
|
|
8
8
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -4,145 +4,57 @@
|
|
|
4
4
|
"inputs": [
|
|
5
5
|
{ "name": "%requestId.0", "type": "Scalar<BLS12-381>" },
|
|
6
6
|
{ "name": "%requestId.1", "type": "Scalar<BLS12-381>" },
|
|
7
|
-
{ "name": "%
|
|
8
|
-
{ "name": "%
|
|
9
|
-
{ "name": "%
|
|
10
|
-
{ "name": "%
|
|
11
|
-
{ "name": "%
|
|
12
|
-
{ "name": "%
|
|
13
|
-
{ "name": "%
|
|
14
|
-
{ "name": "%
|
|
15
|
-
{ "name": "%
|
|
16
|
-
{ "name": "%
|
|
17
|
-
{ "name": "%
|
|
7
|
+
{ "name": "%respondBidirectionalEvent.2", "type": "Scalar<BLS12-381>" },
|
|
8
|
+
{ "name": "%respondBidirectionalEvent.3", "type": "Scalar<BLS12-381>" },
|
|
9
|
+
{ "name": "%respondBidirectionalEvent.4", "type": "Scalar<BLS12-381>" },
|
|
10
|
+
{ "name": "%respondBidirectionalEvent.5", "type": "Scalar<BLS12-381>" },
|
|
11
|
+
{ "name": "%respondBidirectionalEvent.6", "type": "Scalar<BLS12-381>" },
|
|
12
|
+
{ "name": "%respondBidirectionalEvent.7", "type": "Scalar<BLS12-381>" },
|
|
13
|
+
{ "name": "%respondBidirectionalEvent.8", "type": "Scalar<BLS12-381>" },
|
|
14
|
+
{ "name": "%respondBidirectionalEvent.9", "type": "Scalar<BLS12-381>" },
|
|
15
|
+
{ "name": "%respondBidirectionalEvent.10", "type": "Scalar<BLS12-381>" },
|
|
16
|
+
{ "name": "%respondBidirectionalEvent.11", "type": "Scalar<BLS12-381>" },
|
|
17
|
+
{ "name": "%respondBidirectionalEvent.12", "type": "Scalar<BLS12-381>" }
|
|
18
18
|
],
|
|
19
19
|
"outputs": [
|
|
20
20
|
],
|
|
21
21
|
"instructions": [
|
|
22
22
|
{ "op": "constrain_bits", "val": "%requestId.0", "bits": 8 },
|
|
23
23
|
{ "op": "constrain_bits", "val": "%requestId.1", "bits": 248 },
|
|
24
|
-
{ "op": "constrain_bits", "val": "%
|
|
25
|
-
{ "op": "constrain_bits", "val": "%
|
|
26
|
-
{ "op": "constrain_bits", "val": "%
|
|
27
|
-
{ "op": "constrain_bits", "val": "%
|
|
28
|
-
{ "op": "constrain_bits", "val": "%
|
|
29
|
-
{ "op": "constrain_bits", "val": "%
|
|
30
|
-
{ "op": "constrain_bits", "val": "%
|
|
31
|
-
{ "op": "constrain_bits", "val": "%
|
|
32
|
-
{ "op": "constrain_bits", "val": "%
|
|
33
|
-
{ "op": "constrain_bits", "val": "%
|
|
34
|
-
{ "op": "
|
|
35
|
-
{ "op": "
|
|
36
|
-
{ "op": "bytes32_into_low_high", "outputs": ["%t.19", "%t.20"], "bytes": "%bytes.18" },
|
|
37
|
-
{ "op": "public_input", "type": "Scalar<BLS12-381>", "output": "%t.21", "guard": null },
|
|
38
|
-
{ "op": "public_input", "type": "Scalar<BLS12-381>", "output": "%t.22", "guard": null },
|
|
24
|
+
{ "op": "constrain_bits", "val": "%respondBidirectionalEvent.2", "bits": 32 },
|
|
25
|
+
{ "op": "constrain_bits", "val": "%respondBidirectionalEvent.3", "bits": 248 },
|
|
26
|
+
{ "op": "constrain_bits", "val": "%respondBidirectionalEvent.4", "bits": 248 },
|
|
27
|
+
{ "op": "constrain_bits", "val": "%respondBidirectionalEvent.5", "bits": 248 },
|
|
28
|
+
{ "op": "constrain_bits", "val": "%respondBidirectionalEvent.6", "bits": 248 },
|
|
29
|
+
{ "op": "constrain_bits", "val": "%respondBidirectionalEvent.7", "bits": 8 },
|
|
30
|
+
{ "op": "constrain_bits", "val": "%respondBidirectionalEvent.8", "bits": 8 },
|
|
31
|
+
{ "op": "constrain_bits", "val": "%respondBidirectionalEvent.9", "bits": 248 },
|
|
32
|
+
{ "op": "constrain_bits", "val": "%respondBidirectionalEvent.10", "bits": 8 },
|
|
33
|
+
{ "op": "constrain_bits", "val": "%respondBidirectionalEvent.11", "bits": 248 },
|
|
34
|
+
{ "op": "constrain_bits", "val": "%respondBidirectionalEvent.12", "bits": 8 },
|
|
35
|
+
{ "op": "public_input", "type": "Scalar<BLS12-381>", "output": "%t.13", "guard": null },
|
|
39
36
|
{ "op": "impact", "guard": "0x01", "inputs": ["0x30"] },
|
|
40
|
-
{ "op": "impact", "guard": "0x01", "inputs": ["0x50", "0x01", "0x01", "
|
|
41
|
-
{ "op": "impact", "guard": "0x01", "inputs": ["0x0c", "0x01", "0x20", "%t.21", "%t.22"] },
|
|
42
|
-
{ "op": "test_eq", "output": "%t.23", "a": "%t.20", "b": "%t.21" },
|
|
43
|
-
{ "op": "test_eq", "output": "%t.24", "a": "%t.19", "b": "%t.22" },
|
|
44
|
-
{ "op": "cond_select", "output": "%t.25", "bit": "%t.23", "a": "%t.24", "b": "0x00" },
|
|
45
|
-
{ "op": "assert", "cond": "%t.25" },
|
|
46
|
-
{ "op": "persistent_hash", "output": "%bytes.26", "alignment": [{ "tag": "atom", "value": { "length": 128, "tag": "bytes" } }], "inputs": ["%respondBidirectional.2", "%respondBidirectional.3", "%respondBidirectional.4", "%respondBidirectional.5", "%respondBidirectional.6"] },
|
|
47
|
-
{ "op": "bytes32_into_low_high", "outputs": ["%t.27", "%t.28"], "bytes": "%bytes.26" },
|
|
48
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%t.29", "%t.30"], "val": "%respondBidirectional.7", "bits": 248 },
|
|
49
|
-
{ "op": "persistent_hash", "output": "%bytes.31", "alignment": [{ "tag": "atom", "value": { "length": 32, "tag": "bytes" } }, { "tag": "atom", "value": { "length": 32, "tag": "bytes" } }], "inputs": ["%t.28", "%t.27", "%t.29", "%t.30"] },
|
|
50
|
-
{ "op": "bytes32_into_low_high", "outputs": ["%outHash.32", "%outHash.33"], "bytes": "%bytes.31" },
|
|
51
|
-
{ "op": "persistent_hash", "output": "%bytes.34", "alignment": [{ "tag": "atom", "value": { "length": 32, "tag": "bytes" } }, { "tag": "atom", "value": { "length": 32, "tag": "bytes" } }, { "tag": "atom", "value": { "length": 32, "tag": "bytes" } }], "inputs": ["0x00", "0x7369676e65743a6d69646e696768743a617474657374", "%requestId.0", "%requestId.1", "%outHash.33", "%outHash.32"] },
|
|
52
|
-
{ "op": "bytes32_into_low_high", "outputs": ["%msgHash.35", "%msgHash.36"], "bytes": "%bytes.34" },
|
|
53
|
-
{ "op": "bytes32_from_low_high", "output": "%tmp.37", "inputs": ["%respondBidirectional.9", "%respondBidirectional.8"] },
|
|
54
|
-
{ "op": "from_bytes32", "type": "Scalar<Secp256k1>", "output": "%t.38", "bytes": "%tmp.37" },
|
|
55
|
-
{ "op": "bytes32_from_low_high", "output": "%tmp.39", "inputs": ["%respondBidirectional.11", "%respondBidirectional.10"] },
|
|
56
|
-
{ "op": "from_bytes32", "type": "Scalar<Secp256k1>", "output": "%t.40", "bytes": "%tmp.39" },
|
|
57
|
-
{ "op": "copy", "output": "%v.41", "val": "%msgHash.36" },
|
|
58
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.42", "%v.43"], "val": "%msgHash.35", "bits": 8 },
|
|
59
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.44", "%v.45"], "val": "%quo.42", "bits": 8 },
|
|
60
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.46", "%v.47"], "val": "%quo.44", "bits": 8 },
|
|
61
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.48", "%v.49"], "val": "%quo.46", "bits": 8 },
|
|
62
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.50", "%v.51"], "val": "%quo.48", "bits": 8 },
|
|
63
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.52", "%v.53"], "val": "%quo.50", "bits": 8 },
|
|
64
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.54", "%v.55"], "val": "%quo.52", "bits": 8 },
|
|
65
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.56", "%v.57"], "val": "%quo.54", "bits": 8 },
|
|
66
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.58", "%v.59"], "val": "%quo.56", "bits": 8 },
|
|
67
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.60", "%v.61"], "val": "%quo.58", "bits": 8 },
|
|
68
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.62", "%v.63"], "val": "%quo.60", "bits": 8 },
|
|
69
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.64", "%v.65"], "val": "%quo.62", "bits": 8 },
|
|
70
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.66", "%v.67"], "val": "%quo.64", "bits": 8 },
|
|
71
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.68", "%v.69"], "val": "%quo.66", "bits": 8 },
|
|
72
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.70", "%v.71"], "val": "%quo.68", "bits": 8 },
|
|
73
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.72", "%v.73"], "val": "%quo.70", "bits": 8 },
|
|
74
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.74", "%v.75"], "val": "%quo.72", "bits": 8 },
|
|
75
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.76", "%v.77"], "val": "%quo.74", "bits": 8 },
|
|
76
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.78", "%v.79"], "val": "%quo.76", "bits": 8 },
|
|
77
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.80", "%v.81"], "val": "%quo.78", "bits": 8 },
|
|
78
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.82", "%v.83"], "val": "%quo.80", "bits": 8 },
|
|
79
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.84", "%v.85"], "val": "%quo.82", "bits": 8 },
|
|
80
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.86", "%v.87"], "val": "%quo.84", "bits": 8 },
|
|
81
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.88", "%v.89"], "val": "%quo.86", "bits": 8 },
|
|
82
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.90", "%v.91"], "val": "%quo.88", "bits": 8 },
|
|
83
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.92", "%v.93"], "val": "%quo.90", "bits": 8 },
|
|
84
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.94", "%v.95"], "val": "%quo.92", "bits": 8 },
|
|
85
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.96", "%v.97"], "val": "%quo.94", "bits": 8 },
|
|
86
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.98", "%v.99"], "val": "%quo.96", "bits": 8 },
|
|
87
|
-
{ "op": "div_mod_power_of_two", "outputs": ["%quo.100", "%v.101"], "val": "%quo.98", "bits": 8 },
|
|
88
|
-
{ "op": "copy", "output": "%v.102", "val": "%quo.100" },
|
|
89
|
-
{ "op": "copy", "output": "%beReversed.103", "val": "%v.43" },
|
|
90
|
-
{ "op": "reconstitute_field", "output": "%div.104", "divisor": "%v.45", "modulus": "%v.47", "bits": 8 },
|
|
91
|
-
{ "op": "reconstitute_field", "output": "%div.105", "divisor": "%div.104", "modulus": "%v.49", "bits": 8 },
|
|
92
|
-
{ "op": "reconstitute_field", "output": "%div.106", "divisor": "%div.105", "modulus": "%v.51", "bits": 8 },
|
|
93
|
-
{ "op": "reconstitute_field", "output": "%div.107", "divisor": "%div.106", "modulus": "%v.53", "bits": 8 },
|
|
94
|
-
{ "op": "reconstitute_field", "output": "%div.108", "divisor": "%div.107", "modulus": "%v.55", "bits": 8 },
|
|
95
|
-
{ "op": "reconstitute_field", "output": "%div.109", "divisor": "%div.108", "modulus": "%v.57", "bits": 8 },
|
|
96
|
-
{ "op": "reconstitute_field", "output": "%div.110", "divisor": "%div.109", "modulus": "%v.59", "bits": 8 },
|
|
97
|
-
{ "op": "reconstitute_field", "output": "%div.111", "divisor": "%div.110", "modulus": "%v.61", "bits": 8 },
|
|
98
|
-
{ "op": "reconstitute_field", "output": "%div.112", "divisor": "%div.111", "modulus": "%v.63", "bits": 8 },
|
|
99
|
-
{ "op": "reconstitute_field", "output": "%div.113", "divisor": "%div.112", "modulus": "%v.65", "bits": 8 },
|
|
100
|
-
{ "op": "reconstitute_field", "output": "%div.114", "divisor": "%div.113", "modulus": "%v.67", "bits": 8 },
|
|
101
|
-
{ "op": "reconstitute_field", "output": "%div.115", "divisor": "%div.114", "modulus": "%v.69", "bits": 8 },
|
|
102
|
-
{ "op": "reconstitute_field", "output": "%div.116", "divisor": "%div.115", "modulus": "%v.71", "bits": 8 },
|
|
103
|
-
{ "op": "reconstitute_field", "output": "%div.117", "divisor": "%div.116", "modulus": "%v.73", "bits": 8 },
|
|
104
|
-
{ "op": "reconstitute_field", "output": "%div.118", "divisor": "%div.117", "modulus": "%v.75", "bits": 8 },
|
|
105
|
-
{ "op": "reconstitute_field", "output": "%div.119", "divisor": "%div.118", "modulus": "%v.77", "bits": 8 },
|
|
106
|
-
{ "op": "reconstitute_field", "output": "%div.120", "divisor": "%div.119", "modulus": "%v.79", "bits": 8 },
|
|
107
|
-
{ "op": "reconstitute_field", "output": "%div.121", "divisor": "%div.120", "modulus": "%v.81", "bits": 8 },
|
|
108
|
-
{ "op": "reconstitute_field", "output": "%div.122", "divisor": "%div.121", "modulus": "%v.83", "bits": 8 },
|
|
109
|
-
{ "op": "reconstitute_field", "output": "%div.123", "divisor": "%div.122", "modulus": "%v.85", "bits": 8 },
|
|
110
|
-
{ "op": "reconstitute_field", "output": "%div.124", "divisor": "%div.123", "modulus": "%v.87", "bits": 8 },
|
|
111
|
-
{ "op": "reconstitute_field", "output": "%div.125", "divisor": "%div.124", "modulus": "%v.89", "bits": 8 },
|
|
112
|
-
{ "op": "reconstitute_field", "output": "%div.126", "divisor": "%div.125", "modulus": "%v.91", "bits": 8 },
|
|
113
|
-
{ "op": "reconstitute_field", "output": "%div.127", "divisor": "%div.126", "modulus": "%v.93", "bits": 8 },
|
|
114
|
-
{ "op": "reconstitute_field", "output": "%div.128", "divisor": "%div.127", "modulus": "%v.95", "bits": 8 },
|
|
115
|
-
{ "op": "reconstitute_field", "output": "%div.129", "divisor": "%div.128", "modulus": "%v.97", "bits": 8 },
|
|
116
|
-
{ "op": "reconstitute_field", "output": "%div.130", "divisor": "%div.129", "modulus": "%v.99", "bits": 8 },
|
|
117
|
-
{ "op": "reconstitute_field", "output": "%div.131", "divisor": "%div.130", "modulus": "%v.101", "bits": 8 },
|
|
118
|
-
{ "op": "reconstitute_field", "output": "%div.132", "divisor": "%div.131", "modulus": "%v.102", "bits": 8 },
|
|
119
|
-
{ "op": "reconstitute_field", "output": "%beReversed.133", "divisor": "%div.132", "modulus": "%v.41", "bits": 8 },
|
|
120
|
-
{ "op": "bytes32_from_low_high", "output": "%tmp.134", "inputs": ["%beReversed.133", "%beReversed.103"] },
|
|
121
|
-
{ "op": "from_bytes32", "type": "Scalar<Secp256k1>", "output": "%z.135", "bytes": "%tmp.134" },
|
|
122
|
-
{ "op": "inv", "output": "%w.136", "a": "%t.40" },
|
|
123
|
-
{ "op": "mul", "output": "%u1.137", "a": "%z.135", "b": "%w.136" },
|
|
124
|
-
{ "op": "mul", "output": "%u2.138", "a": "%t.38", "b": "%w.136" },
|
|
125
|
-
{ "op": "ec_mul_generator", "output": "%t.139", "scalar": "%u1.137" },
|
|
126
|
-
{ "op": "ec_mul", "output": "%t.140", "a": "%pk.12", "scalar": "%u2.138" },
|
|
127
|
-
{ "op": "add", "output": "%point.141", "a": "%t.139", "b": "%t.140" },
|
|
128
|
-
{ "op": "into_coordinates", "outputs": ["%t.142", "%ignore.143"], "point": "%point.141" },
|
|
129
|
-
{ "op": "into_bytes32", "output": "%tmp.144", "input": "%t.142" },
|
|
130
|
-
{ "op": "bytes32_into_low_high", "outputs": ["%t.145", "%t.146"], "bytes": "%tmp.144" },
|
|
131
|
-
{ "op": "bytes32_from_low_high", "output": "%tmp.147", "inputs": ["%t.145", "%t.146"] },
|
|
132
|
-
{ "op": "from_bytes32", "type": "Scalar<Secp256k1>", "output": "%t.148", "bytes": "%tmp.147" },
|
|
133
|
-
{ "op": "test_eq", "output": "%t.149", "a": "%t.148", "b": "%t.38" },
|
|
134
|
-
{ "op": "assert", "cond": "%t.149" },
|
|
135
|
-
{ "op": "public_input", "type": "Scalar<BLS12-381>", "output": "%t.150", "guard": null },
|
|
136
|
-
{ "op": "impact", "guard": "0x01", "inputs": ["0x30"] },
|
|
137
|
-
{ "op": "impact", "guard": "0x01", "inputs": ["0x50", "0x01", "0x01", "0x02"] },
|
|
37
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x50", "0x01", "0x01", "0x04"] },
|
|
138
38
|
{ "op": "impact", "guard": "0x01", "inputs": ["0x10", "0x01", "0x01", "0x20", "%requestId.0", "%requestId.1"] },
|
|
139
39
|
{ "op": "impact", "guard": "0x01", "inputs": ["0x18"] },
|
|
140
|
-
{ "op": "impact", "guard": "0x01", "inputs": ["0x0d", "0x01", "0x01", "%t.
|
|
141
|
-
{ "op": "cond_select", "output": "%t.
|
|
142
|
-
{ "op": "impact", "guard": "%t.
|
|
143
|
-
{ "op": "impact", "guard": "%t.
|
|
144
|
-
{ "op": "impact", "guard": "%t.
|
|
145
|
-
{ "op": "impact", "guard": "%t.
|
|
146
|
-
{ "op": "impact", "guard": "%t.
|
|
40
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x0d", "0x01", "0x01", "%t.13"] },
|
|
41
|
+
{ "op": "cond_select", "output": "%t.14", "bit": "%t.13", "a": "0x00", "b": "0x01" },
|
|
42
|
+
{ "op": "impact", "guard": "%t.14", "inputs": ["0x70", "0x01", "0x01", "0x04"] },
|
|
43
|
+
{ "op": "impact", "guard": "%t.14", "inputs": ["0x10", "0x01", "0x01", "0x20", "%requestId.0", "%requestId.1"] },
|
|
44
|
+
{ "op": "impact", "guard": "%t.14", "inputs": ["0x11", "0x01", "0x01", "0x08", "0x00"] },
|
|
45
|
+
{ "op": "impact", "guard": "%t.14", "inputs": ["0x91"] },
|
|
46
|
+
{ "op": "impact", "guard": "%t.14", "inputs": ["0xa1"] },
|
|
47
|
+
{ "op": "public_input", "type": "Scalar<BLS12-381>", "output": "%count.15", "guard": null },
|
|
48
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x30"] },
|
|
49
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x51", "0x01", "0x01", "0x04", "0x01", "0x20", "%requestId.0", "%requestId.1"] },
|
|
50
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x0d", "0x01", "0x08", "%count.15"] },
|
|
51
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x71", "0x01", "0x01", "0x04", "0x01", "0x20", "%requestId.0", "%requestId.1"] },
|
|
52
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x0e", "0x01"] },
|
|
53
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0xa2"] },
|
|
54
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x70", "0x01", "0x01", "0x05"] },
|
|
55
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x10", "0x01", "0x02", "0x08", "0x20", "%count.15", "%requestId.0", "%requestId.1"] },
|
|
56
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x11", "0x01", "0x05", "0x80", "0x01", "0x20", "0x20", "0x01", "%respondBidirectionalEvent.2", "%respondBidirectionalEvent.3", "%respondBidirectionalEvent.4", "%respondBidirectionalEvent.5", "%respondBidirectionalEvent.6", "%respondBidirectionalEvent.7", "%respondBidirectionalEvent.8", "%respondBidirectionalEvent.9", "%respondBidirectionalEvent.10", "%respondBidirectionalEvent.11", "%respondBidirectionalEvent.12"] },
|
|
57
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x91"] },
|
|
58
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0xa1"] }
|
|
147
59
|
]
|
|
148
60
|
}
|
|
Binary file
|
|
@@ -4,48 +4,48 @@
|
|
|
4
4
|
"inputs": [
|
|
5
5
|
{ "name": "%requestId.0", "type": "Scalar<BLS12-381>" },
|
|
6
6
|
{ "name": "%requestId.1", "type": "Scalar<BLS12-381>" },
|
|
7
|
-
{ "name": "%
|
|
8
|
-
{ "name": "%
|
|
9
|
-
{ "name": "%
|
|
10
|
-
{ "name": "%
|
|
11
|
-
{ "name": "%
|
|
12
|
-
{ "name": "%
|
|
13
|
-
{ "name": "%
|
|
7
|
+
{ "name": "%signatureRespondedEvent.2", "type": "Scalar<BLS12-381>" },
|
|
8
|
+
{ "name": "%signatureRespondedEvent.3", "type": "Scalar<BLS12-381>" },
|
|
9
|
+
{ "name": "%signatureRespondedEvent.4", "type": "Scalar<BLS12-381>" },
|
|
10
|
+
{ "name": "%signatureRespondedEvent.5", "type": "Scalar<BLS12-381>" },
|
|
11
|
+
{ "name": "%signatureRespondedEvent.6", "type": "Scalar<BLS12-381>" },
|
|
12
|
+
{ "name": "%signatureRespondedEvent.7", "type": "Scalar<BLS12-381>" },
|
|
13
|
+
{ "name": "%signatureRespondedEvent.8", "type": "Scalar<BLS12-381>" }
|
|
14
14
|
],
|
|
15
15
|
"outputs": [
|
|
16
16
|
],
|
|
17
17
|
"instructions": [
|
|
18
18
|
{ "op": "constrain_bits", "val": "%requestId.0", "bits": 8 },
|
|
19
19
|
{ "op": "constrain_bits", "val": "%requestId.1", "bits": 248 },
|
|
20
|
-
{ "op": "constrain_bits", "val": "%
|
|
21
|
-
{ "op": "constrain_bits", "val": "%
|
|
22
|
-
{ "op": "constrain_bits", "val": "%
|
|
23
|
-
{ "op": "constrain_bits", "val": "%
|
|
24
|
-
{ "op": "constrain_bits", "val": "%
|
|
25
|
-
{ "op": "constrain_bits", "val": "%
|
|
26
|
-
{ "op": "constrain_bits", "val": "%
|
|
20
|
+
{ "op": "constrain_bits", "val": "%signatureRespondedEvent.2", "bits": 8 },
|
|
21
|
+
{ "op": "constrain_bits", "val": "%signatureRespondedEvent.3", "bits": 248 },
|
|
22
|
+
{ "op": "constrain_bits", "val": "%signatureRespondedEvent.4", "bits": 8 },
|
|
23
|
+
{ "op": "constrain_bits", "val": "%signatureRespondedEvent.5", "bits": 248 },
|
|
24
|
+
{ "op": "constrain_bits", "val": "%signatureRespondedEvent.6", "bits": 8 },
|
|
25
|
+
{ "op": "constrain_bits", "val": "%signatureRespondedEvent.7", "bits": 248 },
|
|
26
|
+
{ "op": "constrain_bits", "val": "%signatureRespondedEvent.8", "bits": 8 },
|
|
27
27
|
{ "op": "public_input", "type": "Scalar<BLS12-381>", "output": "%t.9", "guard": null },
|
|
28
28
|
{ "op": "impact", "guard": "0x01", "inputs": ["0x30"] },
|
|
29
|
-
{ "op": "impact", "guard": "0x01", "inputs": ["0x50", "0x01", "0x01", "
|
|
29
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x50", "0x01", "0x01", "0x02"] },
|
|
30
30
|
{ "op": "impact", "guard": "0x01", "inputs": ["0x10", "0x01", "0x01", "0x20", "%requestId.0", "%requestId.1"] },
|
|
31
31
|
{ "op": "impact", "guard": "0x01", "inputs": ["0x18"] },
|
|
32
32
|
{ "op": "impact", "guard": "0x01", "inputs": ["0x0d", "0x01", "0x01", "%t.9"] },
|
|
33
33
|
{ "op": "cond_select", "output": "%t.10", "bit": "%t.9", "a": "0x00", "b": "0x01" },
|
|
34
|
-
{ "op": "impact", "guard": "%t.10", "inputs": ["0x70", "0x01", "0x01", "
|
|
34
|
+
{ "op": "impact", "guard": "%t.10", "inputs": ["0x70", "0x01", "0x01", "0x02"] },
|
|
35
35
|
{ "op": "impact", "guard": "%t.10", "inputs": ["0x10", "0x01", "0x01", "0x20", "%requestId.0", "%requestId.1"] },
|
|
36
36
|
{ "op": "impact", "guard": "%t.10", "inputs": ["0x11", "0x01", "0x01", "0x08", "0x00"] },
|
|
37
37
|
{ "op": "impact", "guard": "%t.10", "inputs": ["0x91"] },
|
|
38
38
|
{ "op": "impact", "guard": "%t.10", "inputs": ["0xa1"] },
|
|
39
39
|
{ "op": "public_input", "type": "Scalar<BLS12-381>", "output": "%count.11", "guard": null },
|
|
40
40
|
{ "op": "impact", "guard": "0x01", "inputs": ["0x30"] },
|
|
41
|
-
{ "op": "impact", "guard": "0x01", "inputs": ["0x51", "0x01", "0x01", "
|
|
41
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x51", "0x01", "0x01", "0x02", "0x01", "0x20", "%requestId.0", "%requestId.1"] },
|
|
42
42
|
{ "op": "impact", "guard": "0x01", "inputs": ["0x0d", "0x01", "0x08", "%count.11"] },
|
|
43
|
-
{ "op": "impact", "guard": "0x01", "inputs": ["0x71", "0x01", "0x01", "
|
|
43
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x71", "0x01", "0x01", "0x02", "0x01", "0x20", "%requestId.0", "%requestId.1"] },
|
|
44
44
|
{ "op": "impact", "guard": "0x01", "inputs": ["0x0e", "0x01"] },
|
|
45
45
|
{ "op": "impact", "guard": "0x01", "inputs": ["0xa2"] },
|
|
46
|
-
{ "op": "impact", "guard": "0x01", "inputs": ["0x70", "0x01", "0x01", "
|
|
46
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x70", "0x01", "0x01", "0x03"] },
|
|
47
47
|
{ "op": "impact", "guard": "0x01", "inputs": ["0x10", "0x01", "0x02", "0x08", "0x20", "%count.11", "%requestId.0", "%requestId.1"] },
|
|
48
|
-
{ "op": "impact", "guard": "0x01", "inputs": ["0x11", "0x01", "0x04", "0x20", "0x20", "0x20", "0x01", "%
|
|
48
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x11", "0x01", "0x04", "0x20", "0x20", "0x20", "0x01", "%signatureRespondedEvent.2", "%signatureRespondedEvent.3", "%signatureRespondedEvent.4", "%signatureRespondedEvent.5", "%signatureRespondedEvent.6", "%signatureRespondedEvent.7", "%signatureRespondedEvent.8"] },
|
|
49
49
|
{ "op": "impact", "guard": "0x01", "inputs": ["0x91"] },
|
|
50
50
|
{ "op": "impact", "guard": "0x01", "inputs": ["0xa1"] }
|
|
51
51
|
]
|
|
Binary file
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": { "major": 3, "minor": 0 },
|
|
3
|
+
"do_communications_commitment": true,
|
|
4
|
+
"inputs": [
|
|
5
|
+
{ "name": "%requestId.0", "type": "Scalar<BLS12-381>" },
|
|
6
|
+
{ "name": "%requestId.1", "type": "Scalar<BLS12-381>" },
|
|
7
|
+
{ "name": "%notification.2", "type": "Scalar<BLS12-381>" },
|
|
8
|
+
{ "name": "%notification.3", "type": "Scalar<BLS12-381>" },
|
|
9
|
+
{ "name": "%notification.4", "type": "Scalar<BLS12-381>" },
|
|
10
|
+
{ "name": "%notification.5", "type": "Scalar<BLS12-381>" },
|
|
11
|
+
{ "name": "%notification.6", "type": "Scalar<BLS12-381>" },
|
|
12
|
+
{ "name": "%notification.7", "type": "Scalar<BLS12-381>" }
|
|
13
|
+
],
|
|
14
|
+
"outputs": [
|
|
15
|
+
"Scalar<BLS12-381>",
|
|
16
|
+
"Scalar<BLS12-381>",
|
|
17
|
+
"Scalar<BLS12-381>"
|
|
18
|
+
],
|
|
19
|
+
"instructions": [
|
|
20
|
+
{ "op": "constrain_bits", "val": "%requestId.0", "bits": 8 },
|
|
21
|
+
{ "op": "constrain_bits", "val": "%requestId.1", "bits": 248 },
|
|
22
|
+
{ "op": "constrain_bits", "val": "%notification.2", "bits": 8 },
|
|
23
|
+
{ "op": "constrain_bits", "val": "%notification.3", "bits": 32 },
|
|
24
|
+
{ "op": "constrain_bits", "val": "%notification.4", "bits": 248 },
|
|
25
|
+
{ "op": "constrain_bits", "val": "%notification.5", "bits": 248 },
|
|
26
|
+
{ "op": "constrain_bits", "val": "%notification.6", "bits": 248 },
|
|
27
|
+
{ "op": "constrain_bits", "val": "%notification.7", "bits": 248 },
|
|
28
|
+
{ "op": "test_eq", "output": "%t.8", "a": "%notification.2", "b": "0x01" },
|
|
29
|
+
{ "op": "assert", "cond": "%t.8" },
|
|
30
|
+
{ "op": "public_input", "type": "Scalar<BLS12-381>", "output": "%t.9", "guard": null },
|
|
31
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x30"] },
|
|
32
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x50", "0x01", "0x01", "0x00"] },
|
|
33
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x10", "0x01", "0x01", "0x20", "%requestId.0", "%requestId.1"] },
|
|
34
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x18"] },
|
|
35
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x0d", "0x01", "0x01", "%t.9"] },
|
|
36
|
+
{ "op": "cond_select", "output": "%t.10", "bit": "%t.9", "a": "0x00", "b": "0x01" },
|
|
37
|
+
{ "op": "impact", "guard": "%t.10", "inputs": ["0x70", "0x01", "0x01", "0x00"] },
|
|
38
|
+
{ "op": "impact", "guard": "%t.10", "inputs": ["0x10", "0x01", "0x01", "0x20", "%requestId.0", "%requestId.1"] },
|
|
39
|
+
{ "op": "impact", "guard": "%t.10", "inputs": ["0x11", "0x01", "0x01", "0x08", "0x00"] },
|
|
40
|
+
{ "op": "impact", "guard": "%t.10", "inputs": ["0x91"] },
|
|
41
|
+
{ "op": "impact", "guard": "%t.10", "inputs": ["0xa1"] },
|
|
42
|
+
{ "op": "public_input", "type": "Scalar<BLS12-381>", "output": "%t.11", "guard": null },
|
|
43
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x30"] },
|
|
44
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x51", "0x01", "0x01", "0x00", "0x01", "0x20", "%requestId.0", "%requestId.1"] },
|
|
45
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x0d", "0x01", "0x08", "%t.11"] },
|
|
46
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x71", "0x01", "0x01", "0x00", "0x01", "0x20", "%requestId.0", "%requestId.1"] },
|
|
47
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x0e", "0x01"] },
|
|
48
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0xa2"] },
|
|
49
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x70", "0x01", "0x01", "0x01"] },
|
|
50
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x10", "0x01", "0x02", "0x08", "0x20", "%t.11", "%requestId.0", "%requestId.1"] },
|
|
51
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x11", "0x01", "0x02", "0x01", "0x80", "%notification.2", "%notification.3", "%notification.4", "%notification.5", "%notification.6", "%notification.7"] },
|
|
52
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0x91"] },
|
|
53
|
+
{ "op": "impact", "guard": "0x01", "inputs": ["0xa1"] },
|
|
54
|
+
{ "op": "output", "vals": ["%t.11", "%requestId.0", "%requestId.1"] }
|
|
55
|
+
]
|
|
56
|
+
}
|
package/dist/witnesses.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// The signet contract has no witnesses:
|
|
2
|
-
// CompactStandardLibrary's `
|
|
1
|
+
// The signet contract has no witnesses: Schnorr verification is
|
|
2
|
+
// CompactStandardLibrary's `jubjubSchnorrVerify` (fully in-circuit), and
|
|
3
3
|
// there is no private state — posting carries no caller secrets.
|
|
4
4
|
/**
|
|
5
5
|
* Build the contract's (empty) private state.
|
package/dist/witnesses.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"witnesses.js","sourceRoot":"","sources":["../src/witnesses.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"witnesses.js","sourceRoot":"","sources":["../src/witnesses.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,yEAAyE;AACzE,iEAAiE;AAOjE;;;;GAIG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAC3C,GAA+B,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;AAEzC;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAA0C,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sig-net/midnight-contract",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/sig-net/midnight-integration",
|
|
7
7
|
"directory": "packages/signet-contract"
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
|
-
"description": "The central signet Compact contract on Midnight: the MPC posts signature responses (unauthenticated counted log, verified off-chain) and remote execution responses (
|
|
10
|
+
"description": "The central signet Compact contract on Midnight: the MPC posts signature responses (unauthenticated counted log, verified off-chain) and remote execution responses (Schnorr attestations, verified in-circuit at post time) here; clients poll it. src/index.ts is the curated export surface.",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
13
|
"types": "./dist/index.d.ts",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@midnight-ntwrk/midnight-js": "5.0.0-beta.4"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@sig-net/midnight": "
|
|
45
|
+
"@sig-net/midnight": "^0.0.8",
|
|
46
46
|
"@types/node": "^26.1.0",
|
|
47
47
|
"typescript": "^6.0.3",
|
|
48
48
|
"vitest": "^4.1.9"
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": { "major": 3, "minor": 0 },
|
|
3
|
-
"do_communications_commitment": true,
|
|
4
|
-
"inputs": [
|
|
5
|
-
{ "name": "%requestId.0", "type": "Scalar<BLS12-381>" },
|
|
6
|
-
{ "name": "%requestId.1", "type": "Scalar<BLS12-381>" },
|
|
7
|
-
{ "name": "%notification.2", "type": "Scalar<BLS12-381>" },
|
|
8
|
-
{ "name": "%notification.3", "type": "Scalar<BLS12-381>" },
|
|
9
|
-
{ "name": "%notification.4", "type": "Scalar<BLS12-381>" },
|
|
10
|
-
{ "name": "%notification.5", "type": "Scalar<BLS12-381>" }
|
|
11
|
-
],
|
|
12
|
-
"outputs": [
|
|
13
|
-
],
|
|
14
|
-
"instructions": [
|
|
15
|
-
{ "op": "constrain_bits", "val": "%requestId.0", "bits": 8 },
|
|
16
|
-
{ "op": "constrain_bits", "val": "%requestId.1", "bits": 248 },
|
|
17
|
-
{ "op": "constrain_bits", "val": "%notification.2", "bits": 8 },
|
|
18
|
-
{ "op": "constrain_bits", "val": "%notification.3", "bits": 24 },
|
|
19
|
-
{ "op": "constrain_bits", "val": "%notification.4", "bits": 248 },
|
|
20
|
-
{ "op": "constrain_bits", "val": "%notification.5", "bits": 248 },
|
|
21
|
-
{ "op": "impact", "guard": "0x01", "inputs": ["0x70", "0x01", "0x01", "0x04"] },
|
|
22
|
-
{ "op": "impact", "guard": "0x01", "inputs": ["0x10", "0x01", "0x01", "0x20", "%requestId.0", "%requestId.1"] },
|
|
23
|
-
{ "op": "impact", "guard": "0x01", "inputs": ["0x11", "0x01", "0x02", "0x01", "0x41", "%notification.2", "%notification.3", "%notification.4", "%notification.5"] },
|
|
24
|
-
{ "op": "impact", "guard": "0x01", "inputs": ["0x91"] },
|
|
25
|
-
{ "op": "impact", "guard": "0x01", "inputs": ["0xa1"] }
|
|
26
|
-
]
|
|
27
|
-
}
|