From c4c26ba4aa56e542ca3dee73130f991d824de764 Mon Sep 17 00:00:00 2001 From: Leo Nash Date: Tue, 2 Jun 2026 00:35:58 +0000 Subject: [PATCH 1/2] Upgrade bitcoin_hashes to 1.0 --- rust/Cargo.lock | 10 +++++----- rust/auth-impls/Cargo.toml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 9c67c152..90412beb 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -67,7 +67,7 @@ dependencies = [ "api", "async-trait", "base64", - "bitcoin_hashes 0.19.0", + "bitcoin_hashes 1.0.0", "hex-conservative 1.0.1", "jsonwebtoken", "openssl", @@ -91,9 +91,9 @@ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" [[package]] name = "bitcoin-consensus-encoding" -version = "1.0.0-rc.3" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cd69023e5db2f3f7241672de6be29408373ba0ff407e7fda71d70d728bec05a" +checksum = "b2d6094e2a1ba3c93b5a596fe5a10d1a10c3c6e06785cde89f693a044c01aa40" dependencies = [ "bitcoin-internals", ] @@ -122,9 +122,9 @@ dependencies = [ [[package]] name = "bitcoin_hashes" -version = "0.19.0" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9aaf7add9aa250546d4d7a0ad0755a25327f5205dc2d7eba6b6ec08cd864c79e" +checksum = "8f70c29ac06e7effa19682e91318deae86bdb46c4fd1bbd0f12fd196ff427ab0" dependencies = [ "bitcoin-consensus-encoding", "bitcoin-internals", diff --git a/rust/auth-impls/Cargo.toml b/rust/auth-impls/Cargo.toml index 819a7482..5f956678 100644 --- a/rust/auth-impls/Cargo.toml +++ b/rust/auth-impls/Cargo.toml @@ -12,7 +12,7 @@ sigs = [ "bitcoin_hashes", "hex-conservative", "secp256k1" ] api = { path = "../api" } async-trait = "0.1.77" base64 = { version = "0.22.1", optional = true, default-features = false, features = ["std"] } -bitcoin_hashes = { version = "0.19", optional = true, default-features = false } +bitcoin_hashes = { version = "1.0", optional = true, default-features = false } hex-conservative = { version = "1.0", optional = true, default-features = false } openssl = { version = "0.10.75", optional = true, default-features = false } secp256k1 = { version = "0.31", optional = true, default-features = false, features = [ "global-context" ] } From 834b6b9fe31ad9e40381a89bc84e72ff18d93261 Mon Sep 17 00:00:00 2001 From: fmar Date: Tue, 2 Jun 2026 00:06:08 +0000 Subject: [PATCH 2/2] Add rust Dockerfile --- rust/Dockerfile | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 rust/Dockerfile diff --git a/rust/Dockerfile b/rust/Dockerfile new file mode 100644 index 00000000..7ebc154a --- /dev/null +++ b/rust/Dockerfile @@ -0,0 +1,40 @@ +# Build stage +FROM rust:1.91-bookworm AS builder + +WORKDIR /build + +# Copy workspace files +COPY Cargo.toml Cargo.lock ./ +COPY rustfmt.toml ./ + +# Copy all workspace members +COPY server ./server +COPY api ./api +COPY impls ./impls +COPY auth-impls ./auth-impls + +# Build the application in release mode +RUN cargo build --release --bin vss-server + +# Runtime stage +FROM debian:bookworm-slim + +# Install runtime dependencies +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + ca-certificates \ + libssl3 \ + && rm -rf /var/lib/apt/lists/* + +WORKDIR /app + +# Copy the compiled binary from builder +COPY --from=builder /build/target/release/vss-server /app/vss-server + +# Copy default configuration file +COPY server/vss-server-config.toml /app/vss-server-config.toml + +EXPOSE 8080 + +# Run the server with the config file +CMD ["/app/vss-server", "/app/vss-server-config.toml"] \ No newline at end of file