Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
3 changes: 1 addition & 2 deletions .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Install dasel
run: |
curl -sSL "https://github.com/TomWright/dasel/releases/latest/download/dasel_linux_amd64" -o /tmp/dasel
curl -sSL "https://github.com/TomWright/dasel/releases/download/v2.8.1/dasel_linux_amd64" -o /tmp/dasel
sudo mv /tmp/dasel /usr/local/bin/dasel
sudo chmod +x /usr/local/bin/dasel
dasel --version
Expand Down Expand Up @@ -344,7 +344,6 @@ jobs:
contents: read
packages: write
steps:

- name: Checkout
uses: actions/checkout@v4

Expand Down
3 changes: 0 additions & 3 deletions espresso/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,6 @@ func (c CLIConfig) Check() error {
if c.Namespace == 0 {
return fmt.Errorf("namespace is required when Espresso is enabled")
}
if c.EspressoAttestationService == "" {
return fmt.Errorf("attestation service URL is required when Espresso is enabled")
}
}
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion espresso/docker/l1-geth/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ RUN apt-get update && apt-get install -y \
&& rm -rf /var/lib/apt/lists/*

# Install dasel for JSON manipulation
RUN curl -sSL "https://github.com/TomWright/dasel/releases/latest/download/dasel_linux_$(dpkg --print-architecture)" -o /usr/local/bin/dasel && \
RUN curl -sSL "https://github.com/TomWright/dasel/releases/download/v2.8.1/dasel_linux_$(dpkg --print-architecture)" -o /usr/local/bin/dasel && \
chmod +x /usr/local/bin/dasel

# Install yq for YAML parsing
Expand Down
2 changes: 1 addition & 1 deletion espresso/docker/op-geth/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ RUN case $(uname -m) in \
"arm64"|"aarch64") ARCH="arm64" ;; \
*) ARCH="amd64" ;; \
esac && \
curl -sSL "https://github.com/TomWright/dasel/releases/latest/download/dasel_linux_$ARCH" -o /usr/local/bin/dasel && \
curl -sSL "https://github.com/TomWright/dasel/releases/download/v2.8.1/dasel_linux_$ARCH" -o /usr/local/bin/dasel && \
chmod +x /usr/local/bin/dasel

# Copy binary from builder stage.
Expand Down
2 changes: 1 addition & 1 deletion espresso/docker/op-stack/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN case "$TARGETARCH" in \
esac && \
wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_$ARCH -O /usr/local/bin/yq && \
chmod +x /usr/local/bin/yq && \
wget https://github.com/TomWright/dasel/releases/latest/download/dasel_linux_$ARCH -O /usr/local/bin/dasel && \
wget https://github.com/TomWright/dasel/releases/download/v2.8.1/dasel_linux_$ARCH -O /usr/local/bin/dasel && \
chmod +x /usr/local/bin/dasel && \
wget https://github.com/foundry-rs/foundry/releases/download/v1.4.4/foundry_v1.4.4_linux_$ARCH.tar.gz -O foundry.tgz && \
tar -xzf foundry.tgz -C /usr/local/bin && \
Expand Down
4 changes: 4 additions & 0 deletions op-batcher/batcher/espresso.go
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,10 @@ func (l *BatchSubmitter) registerBatcher(ctx context.Context) error {
}

func (l *BatchSubmitter) GenerateZKProof(ctx context.Context, attestationBytes []byte) (*EspressoOnchainProof, error) {
// batcher calls this function only when its running in TEE mode so if the attestation service URL is not configured, return an error
if l.Config.EspressoAttestationService == "" {
return nil, errors.New("espresso attestation service URL is not configured")
}
attestationServiceURL := strings.TrimSuffix(l.Config.EspressoAttestationService, "/")
url := attestationServiceURL + "/generate_proof"
request, err := http.NewRequestWithContext(ctx, "POST", url, bytes.NewBuffer(attestationBytes))
Expand Down
Loading