Skip to content

Commit

Permalink
TLS from go-utils (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
metachris authored Nov 20, 2024
1 parent deb781b commit cd038b4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 87 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/VictoriaMetrics/metrics v1.35.1
github.com/cenkalti/backoff v2.2.1+incompatible
github.com/ethereum/go-ethereum v1.14.10
github.com/flashbots/go-utils v0.8.1-0.20241111163610-99c6bcefd7df
github.com/flashbots/go-utils v0.8.2
github.com/google/uuid v1.6.0
github.com/hashicorp/golang-lru/v2 v2.0.7
github.com/stretchr/testify v1.9.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ github.com/ethereum/go-ethereum v1.14.10 h1:kC24WjYeRjDy86LVo6MfF5Xs7nnUu+XG4Aja
github.com/ethereum/go-ethereum v1.14.10/go.mod h1:+l/fr42Mma+xBnhefL/+z11/hcmJ2egl+ScIVPjhc7E=
github.com/ethereum/go-verkle v0.1.1-0.20240829091221-dffa7562dbe9 h1:8NfxH2iXvJ60YRB8ChToFTUzl8awsc3cJ8CbLjGIl/A=
github.com/ethereum/go-verkle v0.1.1-0.20240829091221-dffa7562dbe9/go.mod h1:M3b90YRnzqKyyzBEWJGqj8Qff4IDeXnzFw0P9bFw3uk=
github.com/flashbots/go-utils v0.8.1-0.20241111163610-99c6bcefd7df h1:hUEq6QNP8kUMQcOJc/iur3XFMUptqgAn+Qz1XYccj1k=
github.com/flashbots/go-utils v0.8.1-0.20241111163610-99c6bcefd7df/go.mod h1:Lo/nrlC+q8ANgT3e6MKALIJCU+V9qTSgNtoLk/q1uIw=
github.com/flashbots/go-utils v0.8.2 h1:8JUKd9Cv1CTcp63V03ya+47nflTwBEqZq357iwW4fxQ=
github.com/flashbots/go-utils v0.8.2/go.mod h1:Lo/nrlC+q8ANgT3e6MKALIJCU+V9qTSgNtoLk/q1uIw=
github.com/getsentry/sentry-go v0.27.0 h1:Pv98CIbtB3LkMWmXi4Joa5OOcwbmnX88sF5qbK3r3Ps=
github.com/getsentry/sentry-go v0.27.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY=
github.com/go-ole/go-ole v1.2.5/go.mod h1:pprOEPIfldk/42T2oK7lQ4v4JSDwmV0As9GaiUsvbm0=
Expand Down
83 changes: 0 additions & 83 deletions proxy/generate_ssl.go

This file was deleted.

4 changes: 3 additions & 1 deletion proxy/receiver_proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/flashbots/go-utils/rpcclient"
"github.com/flashbots/go-utils/signature"
utils_tls "github.com/flashbots/go-utils/tls"
"github.com/google/uuid"
"github.com/hashicorp/golang-lru/v2/expirable"
"golang.org/x/time/rate"
Expand Down Expand Up @@ -97,7 +98,8 @@ func NewReceiverProxy(config ReceiverProxyConfig) (*ReceiverProxy, error) {
if err != nil {
return nil, err
}
cert, key, err := GenerateCert(config.CertValidDuration, config.CertHosts)

cert, key, err := utils_tls.GenerateTLS(config.CertValidDuration, config.CertHosts)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit cd038b4

Please sign in to comment.