Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 025a934

Browse files
mpetrun5ec2nulltea
authored
feat: proof generation implementation (#17)
Co-authored-by: ec2 <[email protected]> Co-authored-by: Timofey Luin <[email protected]>
1 parent 2119b87 commit 025a934

33 files changed

+1729
-737
lines changed

.env.example

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export SPECTRE_PROVER_URL=""
2+
export SPECTRE_DOMAINS="1:evm,2:evm"
3+
4+
export SPECTRE_DOMAINS_1_KEY=""
5+
export SPECTRE_DOMAINS_1_SPECTRE=""
6+
export SPECTRE_DOMAINS_1_ROUTER=""
7+
export SPECTRE_DOMAINS_1_BEACON_ENDPOINT=""
8+
export SPECTRE_DOMAINS_1_SPEC="mainnet"
9+
export SPECTRE_DOMAINS_1_ENDPOINT=""
10+
11+
export SPECTRE_DOMAINS_2_KEY=""
12+
export SPECTRE_DOMAINS_2_SPECTRE=""
13+
export SPECTRE_DOMAINS_2_ROUTER=""
14+
export SPECTRE_DOMAINS_2_BEACON_ENDPOINT=""
15+
export SPECTRE_DOMAINS_2_SPEC="mainnet"
16+
export SPECTRE_DOMAINS_2_ENDPOINT=""

.github/CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# CODEOWNERS: https://help.github.com/articles/about-codeowners/
22

33
# Primary repo maintainers
4-
* @P1sar @mpetrun5 @tcar121293 @MakMuftic @nmlinaric @freddyli7
4+
* @mpetrun5 @tcar121293 @MakMuftic @nmlinaric

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@
1919

2020
# Go workspace file
2121
go.work
22+
.env

Dockerfile

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright 2020 ChainSafe Systems
2+
# SPDX-License-Identifier: LGPL-3.0-only
3+
4+
FROM alpine as alpine
5+
RUN apk --no-cache add ca-certificates
6+
7+
FROM golang:1.19 AS builder
8+
ADD . /src
9+
WORKDIR /src
10+
RUN cd /src && echo $(ls -1 /src)
11+
RUN go mod download
12+
RUN go build -o /spectre .
13+
14+
# final stage
15+
FROM debian:stable-slim
16+
COPY --from=builder /spectre ./
17+
RUN chmod +x ./spectre
18+
RUN mkdir -p /mount
19+
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
20+
21+
ENTRYPOINT ["./spectre"]

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ genmocks:
2525
mockgen -source=./chains/evm/listener/events/handlers/rotate.go -destination=./mock/rotate.go -package mock
2626
mockgen -source=./chains/evm/listener/listener.go -destination=./mock/listener.go -package mock
2727
mockgen -source=./chains/evm/executor/executor.go -destination=./mock/executor.go -package mock
28+
mockgen -source=./chains/evm/prover/prover.go -destination=./mock/prover.go -package mock
2829

2930

3031
PLATFORMS := linux/amd64 darwin/amd64 darwin/arm64 linux/arm

README.md

+17-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
1-
# spectre-node
1+
# spectre-node
2+
3+
### Running locally
4+
5+
#### Configuration
6+
7+
The configuration is done via environment variables. If you want to run the node locally edit the `.env.shell` file and use the command:
8+
9+
```bash
10+
source .env.shell
11+
```
12+
13+
The node can then be run with the command:
14+
15+
```go
16+
go run main.go
17+
```

0 commit comments

Comments
 (0)