Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM rust:1.74-slim-bookworm

RUN apt-get update && apt-get install -y \
git \
rsync \
&& rm -rf /var/lib/apt/lists/*
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=auto
*.sh text eol=lf
*.patch text eol=lf
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ fuzz/corpus
*.o
*.a
*.lib

# local devcontainer for testing
.devcontainer/local
8 changes: 4 additions & 4 deletions simplicity-sys/depend/jets_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ WRAP_(and_8)
WRAP_(annex_hash)
WRAP_(asset_amount_hash)
WRAP_(bip_0340_verify)
WRAP_(broken_do_not_use_check_lock_distance)
WRAP_(broken_do_not_use_check_lock_duration)
WRAP_(broken_do_not_use_tx_lock_distance)
WRAP_(broken_do_not_use_tx_lock_duration)
WRAP_(build_tapbranch)
WRAP_(build_tapleaf_simplicity)
WRAP_(build_taptweak)
Expand All @@ -32,8 +36,6 @@ WRAP_(ch_16)
WRAP_(ch_32)
WRAP_(ch_64)
WRAP_(ch_8)
WRAP_(check_lock_distance)
WRAP_(check_lock_duration)
WRAP_(check_lock_height)
WRAP_(check_lock_time)
WRAP_(check_sig_verify)
Expand Down Expand Up @@ -459,8 +461,6 @@ WRAP_(total_fee)
WRAP_(transaction_id)
WRAP_(tx_hash)
WRAP_(tx_is_final)
WRAP_(tx_lock_distance)
WRAP_(tx_lock_duration)
WRAP_(tx_lock_height)
WRAP_(tx_lock_time)
WRAP_(verify)
Expand Down
2 changes: 1 addition & 1 deletion simplicity-sys/depend/simplicity-HEAD-revision.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This file has been automatically generated.
b7bd4171e74451c8e1b6948674285f0d4274e368
ef284d6173a9ac4e4a2922c1ad0d3c7f1e003d46
11 changes: 8 additions & 3 deletions simplicity-sys/depend/simplicity/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
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
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
BITCOIN_OBJS := bitcoin/env.o bitcoin/ops.o bitcoin/bitcoinJets.o bitcoin/primitive.o bitcoin/txEnv.o
ELEMENTS_OBJS := elements/env.o elements/exec.o elements/ops.o elements/elementsJets.o elements/primitive.o elements/cmr.o elements/txEnv.o
TEST_OBJS := test.o ctx8Pruned.o ctx8Unpruned.o hashBlock.o regression4.o schnorr0.o schnorr6.o typeSkipTest.o elements/checkSigHashAllTx1.o

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

libElementsSimplicity.a: $(OBJS)
libBitcoinSimplicity.a: $(CORE_OBJS) $(BITCOIN_OBJS)
ar rcs $@ $^

libElementsSimplicity.a: $(CORE_OBJS) $(ELEMENTS_OBJS)
ar rcs $@ $^

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

install: libElementsSimplicity.a
install: libBitcoinSimplicity.a libElementsSimplicity.a
mkdir -p $(out)/lib
cp $^ $(out)/lib/
cp -R include $(out)/include
Expand Down
Loading
Loading