Skip to content

Commit 9afcf8f

Browse files
committed
revendor libsimplicity
1 parent d28440b commit 9afcf8f

39 files changed

+8473
-1644
lines changed

jets-bench/benches/elements/main.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ use simplicity::types;
1010
use simplicity::types::Final;
1111
use simplicity::Value;
1212
use simplicity_bench::input::{
13-
self, EqProduct, GenericProduct, InputSample, PrefixBit, Sha256Ctx, UniformBits,
14-
DivMod12864Input,
13+
self, DivMod12864Input, EqProduct, GenericProduct, InputSample, PrefixBit, Sha256Ctx,
14+
UniformBits,
1515
};
1616
use simplicity_bench::{
1717
genesis_pegin, BenchSample, EnvSampling, InputSampling, JetBuffer, JetParams, SimplicityCtx8,
@@ -674,12 +674,12 @@ fn bench(c: &mut Criterion) {
674674
// No need to specially consider issuances or pegins
675675
(Elements::CheckLockHeight, ElementsBenchEnvType::Random),
676676
(Elements::CheckLockTime, ElementsBenchEnvType::Random),
677-
(Elements::CheckLockDistance, ElementsBenchEnvType::Random),
678-
(Elements::CheckLockDuration, ElementsBenchEnvType::Random),
677+
(Elements::BrokenDoNotUseCheckLockDistance, ElementsBenchEnvType::Random),
678+
(Elements::BrokenDoNotUseCheckLockDuration, ElementsBenchEnvType::Random),
679679
(Elements::TxLockHeight, ElementsBenchEnvType::Random),
680680
(Elements::TxLockTime, ElementsBenchEnvType::Random),
681-
(Elements::TxLockDistance, ElementsBenchEnvType::Random),
682-
(Elements::TxLockDuration, ElementsBenchEnvType::Random),
681+
(Elements::BrokenDoNotUseTxLockDistance, ElementsBenchEnvType::Random),
682+
(Elements::BrokenDoNotUseTxLockDuration, ElementsBenchEnvType::Random),
683683
(Elements::TxIsFinal, ElementsBenchEnvType::Random),
684684
// -----------------------------------------
685685
// Jets with no environment required, but no custom sampling required

simplicity-sys/depend/jets_wrapper.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ WRAP_(and_8)
2020
WRAP_(annex_hash)
2121
WRAP_(asset_amount_hash)
2222
WRAP_(bip_0340_verify)
23+
WRAP_(broken_do_not_use_check_lock_distance)
24+
WRAP_(broken_do_not_use_check_lock_duration)
25+
WRAP_(broken_do_not_use_tx_lock_distance)
26+
WRAP_(broken_do_not_use_tx_lock_duration)
2327
WRAP_(build_tapbranch)
2428
WRAP_(build_tapleaf_simplicity)
2529
WRAP_(build_taptweak)
@@ -32,8 +36,6 @@ WRAP_(ch_16)
3236
WRAP_(ch_32)
3337
WRAP_(ch_64)
3438
WRAP_(ch_8)
35-
WRAP_(check_lock_distance)
36-
WRAP_(check_lock_duration)
3739
WRAP_(check_lock_height)
3840
WRAP_(check_lock_time)
3941
WRAP_(check_sig_verify)
@@ -459,8 +461,6 @@ WRAP_(total_fee)
459461
WRAP_(transaction_id)
460462
WRAP_(tx_hash)
461463
WRAP_(tx_is_final)
462-
WRAP_(tx_lock_distance)
463-
WRAP_(tx_lock_duration)
464464
WRAP_(tx_lock_height)
465465
WRAP_(tx_lock_time)
466466
WRAP_(verify)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# This file has been automatically generated.
2-
b7bd4171e74451c8e1b6948674285f0d4274e368
2+
d190505509f4c04b1b9193c6739515f9faa18aac

simplicity-sys/depend/simplicity/Makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
OBJS := bitstream.o dag.o deserialize.o eval.o frame.o jets.o jets-secp256k1.o rsort.o sha256.o type.o typeInference.o elements/env.o elements/exec.o elements/ops.o elements/elementsJets.o elements/primitive.o elements/cmr.o elements/txEnv.o
1+
CORE_OBJS := bitstream.o dag.o deserialize.o eval.o frame.o jets.o jets-secp256k1.o rsort.o sha256.o type.o typeInference.o
2+
BITCOIN_OBJS := bitcoin/env.o bitcoin/ops.o bitcoin/bitcoinJets.o bitcoin/primitive.o bitcoin/txEnv.o
3+
ELEMENTS_OBJS := elements/env.o elements/exec.o elements/ops.o elements/elementsJets.o elements/primitive.o elements/cmr.o elements/txEnv.o
24
TEST_OBJS := test.o ctx8Pruned.o ctx8Unpruned.o hashBlock.o regression4.o schnorr0.o schnorr6.o typeSkipTest.o elements/checkSigHashAllTx1.o
35

46
# From https://fastcompression.blogspot.com/2019/01/compiler-warnings.html
@@ -23,13 +25,16 @@ sha256.o: sha256.c
2325
%.o: %.c
2426
$(CC) -c $(CFLAGS) $(CWARN) $(CPPFLAGS) -o $@ $<
2527

26-
libElementsSimplicity.a: $(OBJS)
28+
libBitcoinSimplicity.a: $(CORE_OBJS) $(BITCOIN_OBJS)
29+
ar rcs $@ $^
30+
31+
libElementsSimplicity.a: $(CORE_OBJS) $(ELEMENTS_OBJS)
2732
ar rcs $@ $^
2833

2934
test: $(TEST_OBJS) libElementsSimplicity.a
3035
$(CC) $^ -o $@ $(LDFLAGS)
3136

32-
install: libElementsSimplicity.a
37+
install: libBitcoinSimplicity.a libElementsSimplicity.a
3338
mkdir -p $(out)/lib
3439
cp $^ $(out)/lib/
3540
cp -R include $(out)/include

0 commit comments

Comments
 (0)