@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.
@@ -2,7 +2,7 @@
2
2
  "version": 3,
3
3
  "file": "index.js",
4
4
  "sourceRoot": "../../../",
5
- "sources": ["src/signet-contract.compact", "compiler/zkir-v3-library.compact", "../../node_modules/@sig-net/midnight/src/Signet.compact"],
5
+ "sources": ["src/signet-contract.compact"],
6
6
  "names": [],
7
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BA;;;;;;;;;;MAWA,AAAA,mCAQC;;;;;cAPG,WAAoB;cACpB,cAA2C;;;;;;;;;;;;;;;;;;;;;;;;;yCAD3C,WAAoB,gCACpB,cAA2C;;;;;;;;;2EAD3C,WAAoB;2EACpB,cAA2C;;;;OAM9C;MAQD,AAAA,qBAsBC;;;;;cAtBoC,WAAoB;cAAE,mBAAoC;;;;;;;;;;;;;;;;;;;;;;;;;yCAA1D,WAAoB,+BAAE,mBAAoC;;;;;;;;;6DAA1D,WAAoB;6DAAE,mBAAoC;;;;OAsB9F;MAUD,AAAA,wBA8CC;;;;;cA7CG,WAAoB;cACpB,sBAA0C;cAC1C,IAAkB;;;;;;;;;;;;;;;;;;;;;;;;;yCAFlB,WAAoB,+BACpB,sBAA0C,+BAC1C,IAAkB;;;;;;;;;gEAFlB,WAAoB;gEACpB,sBAA0C;gEAC1C,IAAkB;;;;OA2CrB;;;;;;;;;;;;GAvGA;EAFD;;;;;UAAY,OAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAfjC;;;;;;;;;;yEAA2E;IAE3E;;;;;;;;;;yEAA6D;IAE7D;;;;;;;;;;yEAAmE;IAInE;;;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;;;;;;;;;;;;;;;;4GAAoF;;;;;;uCAApF;;;;;;;;;;;;4GAAoF;;;;;;;;;;;;;;uCAApF;;;;;;;;;;;;;;;4GAAoF;;;;;;;;;;;;;;uCAApF;;;;;;;;;;;;;;;;;4GAAoF;;;;;;;;;KAAA;;;;;;;;;;;;;;;;"
8
8
  }
@@ -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": "%respondBidirectional.2", "type": "Scalar<BLS12-381>" },
8
- { "name": "%respondBidirectional.3", "type": "Scalar<BLS12-381>" },
9
- { "name": "%respondBidirectional.4", "type": "Scalar<BLS12-381>" },
10
- { "name": "%respondBidirectional.5", "type": "Scalar<BLS12-381>" },
11
- { "name": "%respondBidirectional.6", "type": "Scalar<BLS12-381>" },
12
- { "name": "%respondBidirectional.7", "type": "Scalar<BLS12-381>" },
13
- { "name": "%respondBidirectional.8", "type": "Scalar<BLS12-381>" },
14
- { "name": "%respondBidirectional.9", "type": "Scalar<BLS12-381>" },
15
- { "name": "%respondBidirectional.10", "type": "Scalar<BLS12-381>" },
16
- { "name": "%respondBidirectional.11", "type": "Scalar<BLS12-381>" },
17
- { "name": "%pk.12", "type": "Point<Secp256k1>" }
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": "%respondBidirectional.2", "bits": 32 },
25
- { "op": "constrain_bits", "val": "%respondBidirectional.3", "bits": 248 },
26
- { "op": "constrain_bits", "val": "%respondBidirectional.4", "bits": 248 },
27
- { "op": "constrain_bits", "val": "%respondBidirectional.5", "bits": 248 },
28
- { "op": "constrain_bits", "val": "%respondBidirectional.6", "bits": 248 },
29
- { "op": "constrain_bits", "val": "%respondBidirectional.7", "bits": 8 },
30
- { "op": "constrain_bits", "val": "%respondBidirectional.8", "bits": 8 },
31
- { "op": "constrain_bits", "val": "%respondBidirectional.9", "bits": 248 },
32
- { "op": "constrain_bits", "val": "%respondBidirectional.10", "bits": 8 },
33
- { "op": "constrain_bits", "val": "%respondBidirectional.11", "bits": 248 },
34
- { "op": "encode", "outputs": ["%fld.13", "%fld.14", "%fld.15", "%fld.16", "%fld.17"], "input": "%pk.12" },
35
- { "op": "persistent_hash", "output": "%bytes.18", "alignment": [{ "tag": "atom", "value": { "length": 24, "tag": "bytes" } }, { "tag": "atom", "value": { "length": 8, "tag": "bytes" } }, { "tag": "atom", "value": { "length": 24, "tag": "bytes" } }, { "tag": "atom", "value": { "length": 8, "tag": "bytes" } }, { "tag": "atom", "value": { "tag": "field" } }], "inputs": ["%fld.13", "%fld.14", "%fld.15", "%fld.16", "%fld.17"] },
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", "0x03"] },
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.150"] },
141
- { "op": "cond_select", "output": "%t.151", "bit": "%t.150", "a": "0x00", "b": "0x01" },
142
- { "op": "impact", "guard": "%t.151", "inputs": ["0x70", "0x01", "0x01", "0x02"] },
143
- { "op": "impact", "guard": "%t.151", "inputs": ["0x10", "0x01", "0x01", "0x20", "%requestId.0", "%requestId.1"] },
144
- { "op": "impact", "guard": "%t.151", "inputs": ["0x11", "0x01", "0x04", "0x80", "0x01", "0x20", "0x20", "%respondBidirectional.2", "%respondBidirectional.3", "%respondBidirectional.4", "%respondBidirectional.5", "%respondBidirectional.6", "%respondBidirectional.7", "%respondBidirectional.8", "%respondBidirectional.9", "%respondBidirectional.10", "%respondBidirectional.11"] },
145
- { "op": "impact", "guard": "%t.151", "inputs": ["0x91"] },
146
- { "op": "impact", "guard": "%t.151", "inputs": ["0xa1"] }
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
  }
@@ -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": "%signatureResponse.2", "type": "Scalar<BLS12-381>" },
8
- { "name": "%signatureResponse.3", "type": "Scalar<BLS12-381>" },
9
- { "name": "%signatureResponse.4", "type": "Scalar<BLS12-381>" },
10
- { "name": "%signatureResponse.5", "type": "Scalar<BLS12-381>" },
11
- { "name": "%signatureResponse.6", "type": "Scalar<BLS12-381>" },
12
- { "name": "%signatureResponse.7", "type": "Scalar<BLS12-381>" },
13
- { "name": "%signatureResponse.8", "type": "Scalar<BLS12-381>" }
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": "%signatureResponse.2", "bits": 8 },
21
- { "op": "constrain_bits", "val": "%signatureResponse.3", "bits": 248 },
22
- { "op": "constrain_bits", "val": "%signatureResponse.4", "bits": 8 },
23
- { "op": "constrain_bits", "val": "%signatureResponse.5", "bits": 248 },
24
- { "op": "constrain_bits", "val": "%signatureResponse.6", "bits": 8 },
25
- { "op": "constrain_bits", "val": "%signatureResponse.7", "bits": 248 },
26
- { "op": "constrain_bits", "val": "%signatureResponse.8", "bits": 8 },
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", "0x00"] },
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", "0x00"] },
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", "0x00", "0x01", "0x20", "%requestId.0", "%requestId.1"] },
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", "0x00", "0x01", "0x20", "%requestId.0", "%requestId.1"] },
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", "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", "%signatureResponse.2", "%signatureResponse.3", "%signatureResponse.4", "%signatureResponse.5", "%signatureResponse.6", "%signatureResponse.7", "%signatureResponse.8"] },
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
  ]
@@ -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: attestation verification is
2
- // CompactStandardLibrary's `secp256k1EcdsaVerify` (fully in-circuit), and
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.
@@ -1 +1 @@
1
- {"version":3,"file":"witnesses.js","sourceRoot":"","sources":["../src/witnesses.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,0EAA0E;AAC1E,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"}
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.6",
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 (secp256k1 ECDSA attestations, verified in-circuit at post time) here; clients poll it. src/index.ts is the curated export surface.",
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"
@@ -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
- }