Commit 17fd5a8
committed
simplicity-sys: update libsimplicity to bitcoin branch
Updates to BlockstreamResearch/simplicity#324
This PR does a couple things simultaneously:
* Runs vendor-simplicity.sh and update-jets.sh
* Updates the `Jet` trait to have associated transaction and environment types,
and for the environment to be paramterized by the transaction type.
* Changes the Core environment from () to CoreEnv::<Infallible>
* Updates some fixed Core CMR/IHR vectors (this update to libsimplicity changes
the benchmarks for the Core jets and thus changes these vectors)
* Uncomments the commented-out symbols in simplicity-sys/src/c_jets/c_env/bitcoin.rs
* Adds the "build bitcoin" lines to simplicity-sys/build.rs
The update to the `Jet` trait is a bit noisy but ultimately mechanical: everywhere
that we're generic over all J: Jet, we now also have to be generic over all
T: Borrow<J::Transaction>, which leads to some extra line noise especially in
unit tests where we have assert_* helper functions.
The last four points are tiny diffs, thanks to the previous preparatory commits.
The use of CoreEnv::<Infallible> as the core environment type is kinda fun. It
means that it is impossible to execute any code which attempts to access the
transaction in the environment. (No such code exists, since it would be nonsensical,
but now we have some assurance that it won't exist by accident in the future.)
Unfortunately this mixes mechanical and non-mechanical things in one commit. But
the mechanical changes are exclusively in simplicity-sys/depend/ and src/jet/init/
and the non-mechanical changes are exclusively outside of those files, so it
should be possible to review this.1 parent c7cf0c2 commit 17fd5a8
45 files changed
Lines changed: 11660 additions & 2604 deletions
File tree
- simplicity-sys
- depend
- simplicity
- bitcoin
- elements
- include/simplicity/bitcoin
- src/c_jets
- c_env
- src
- bit_machine
- human_encoding
- parse
- jet
- bitcoin
- core
- init
- merkle
- node
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
124 | 126 | | |
125 | 127 | | |
126 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| 25 | + | |
23 | 26 | | |
| 27 | + | |
24 | 28 | | |
| 29 | + | |
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
| |||
32 | 37 | | |
33 | 38 | | |
34 | 39 | | |
| 40 | + | |
35 | 41 | | |
| 42 | + | |
36 | 43 | | |
| 44 | + | |
37 | 45 | | |
| 46 | + | |
38 | 47 | | |
39 | 48 | | |
40 | 49 | | |
| |||
43 | 52 | | |
44 | 53 | | |
45 | 54 | | |
| 55 | + | |
46 | 56 | | |
47 | 57 | | |
| 58 | + | |
48 | 59 | | |
49 | 60 | | |
50 | 61 | | |
51 | 62 | | |
52 | 63 | | |
53 | 64 | | |
54 | 65 | | |
| 66 | + | |
55 | 67 | | |
56 | 68 | | |
57 | 69 | | |
| 70 | + | |
58 | 71 | | |
| 72 | + | |
59 | 73 | | |
| 74 | + | |
60 | 75 | | |
| 76 | + | |
61 | 77 | | |
62 | 78 | | |
63 | 79 | | |
| |||
92 | 108 | | |
93 | 109 | | |
94 | 110 | | |
| 111 | + | |
95 | 112 | | |
96 | 113 | | |
97 | 114 | | |
| |||
178 | 195 | | |
179 | 196 | | |
180 | 197 | | |
| 198 | + | |
181 | 199 | | |
| 200 | + | |
182 | 201 | | |
183 | 202 | | |
| 203 | + | |
184 | 204 | | |
| 205 | + | |
185 | 206 | | |
186 | 207 | | |
| 208 | + | |
187 | 209 | | |
| 210 | + | |
188 | 211 | | |
| 212 | + | |
189 | 213 | | |
| 214 | + | |
190 | 215 | | |
| 216 | + | |
191 | 217 | | |
| 218 | + | |
192 | 219 | | |
| 220 | + | |
193 | 221 | | |
| 222 | + | |
194 | 223 | | |
| 224 | + | |
195 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
196 | 229 | | |
| 230 | + | |
197 | 231 | | |
198 | 232 | | |
199 | 233 | | |
| |||
284 | 318 | | |
285 | 319 | | |
286 | 320 | | |
| 321 | + | |
287 | 322 | | |
288 | 323 | | |
289 | 324 | | |
| |||
325 | 360 | | |
326 | 361 | | |
327 | 362 | | |
| 363 | + | |
328 | 364 | | |
| 365 | + | |
329 | 366 | | |
330 | 367 | | |
331 | 368 | | |
| |||
336 | 373 | | |
337 | 374 | | |
338 | 375 | | |
| 376 | + | |
339 | 377 | | |
340 | 378 | | |
341 | 379 | | |
342 | 380 | | |
| 381 | + | |
343 | 382 | | |
344 | 383 | | |
345 | 384 | | |
346 | 385 | | |
347 | 386 | | |
348 | 387 | | |
349 | 388 | | |
| 389 | + | |
350 | 390 | | |
| 391 | + | |
351 | 392 | | |
352 | 393 | | |
353 | 394 | | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
354 | 398 | | |
355 | 399 | | |
356 | 400 | | |
| |||
422 | 466 | | |
423 | 467 | | |
424 | 468 | | |
| 469 | + | |
425 | 470 | | |
426 | 471 | | |
427 | 472 | | |
| |||
438 | 483 | | |
439 | 484 | | |
440 | 485 | | |
| 486 | + | |
441 | 487 | | |
442 | 488 | | |
443 | 489 | | |
| |||
449 | 495 | | |
450 | 496 | | |
451 | 497 | | |
| 498 | + | |
452 | 499 | | |
453 | 500 | | |
| 501 | + | |
454 | 502 | | |
| 503 | + | |
455 | 504 | | |
| 505 | + | |
456 | 506 | | |
| 507 | + | |
457 | 508 | | |
458 | 509 | | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
459 | 513 | | |
| 514 | + | |
460 | 515 | | |
| 516 | + | |
461 | 517 | | |
| 518 | + | |
462 | 519 | | |
| 520 | + | |
463 | 521 | | |
| 522 | + | |
464 | 523 | | |
| 524 | + | |
465 | 525 | | |
466 | 526 | | |
| 527 | + | |
467 | 528 | | |
468 | 529 | | |
469 | 530 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
| |||
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
27 | 32 | | |
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
32 | | - | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
| |||
0 commit comments