Skip to content
This repository was archived by the owner on Jun 22, 2023. It is now read-only.

Commit 7a391fa

Browse files
committed
Format dc4bc + code review fixes
1 parent 617c4f5 commit 7a391fa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+97
-87
lines changed

airgapped/airgapped.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ import (
1111
"github.com/corestario/kyber"
1212
"github.com/corestario/kyber/encrypt/ecies"
1313
vss "github.com/corestario/kyber/share/vss/rabin"
14+
"github.com/syndtr/goleveldb/leveldb"
15+
1416
client "github.com/lidofinance/dc4bc/client/types"
1517
"github.com/lidofinance/dc4bc/dkg"
1618
"github.com/lidofinance/dc4bc/fsm/fsm"
1719
"github.com/lidofinance/dc4bc/fsm/state_machines/dkg_proposal_fsm"
1820
"github.com/lidofinance/dc4bc/fsm/state_machines/signature_proposal_fsm"
1921
"github.com/lidofinance/dc4bc/fsm/state_machines/signing_proposal_fsm"
2022
"github.com/lidofinance/dc4bc/fsm/types/requests"
21-
"github.com/syndtr/goleveldb/leveldb"
2223
)
2324

2425
const (

airgapped/airgapped_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import (
1010
"time"
1111

1212
"github.com/google/uuid"
13+
"github.com/stretchr/testify/require"
14+
1315
client "github.com/lidofinance/dc4bc/client/types"
1416
"github.com/lidofinance/dc4bc/fsm/fsm"
1517
"github.com/lidofinance/dc4bc/fsm/state_machines/dkg_proposal_fsm"
@@ -18,7 +20,6 @@ import (
1820
"github.com/lidofinance/dc4bc/fsm/types/requests"
1921
"github.com/lidofinance/dc4bc/fsm/types/responses"
2022
"github.com/lidofinance/dc4bc/storage"
21-
"github.com/stretchr/testify/require"
2223
)
2324

2425
const (

airgapped/bls.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"github.com/corestario/kyber/pairing"
88
"github.com/corestario/kyber/sign/bls"
99
"github.com/corestario/kyber/sign/tbls"
10+
1011
client "github.com/lidofinance/dc4bc/client/types"
1112
"github.com/lidofinance/dc4bc/fsm/state_machines/signing_proposal_fsm"
1213
"github.com/lidofinance/dc4bc/fsm/types/requests"

airgapped/dkg.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212

1313
"github.com/corestario/kyber"
1414
dkgPedersen "github.com/corestario/kyber/share/dkg/pedersen"
15+
1516
client "github.com/lidofinance/dc4bc/client/types"
1617
"github.com/lidofinance/dc4bc/dkg"
1718
"github.com/lidofinance/dc4bc/fsm/state_machines/dkg_proposal_fsm"

airgapped/storage.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ import (
1010

1111
bls12381 "github.com/corestario/kyber/pairing/bls12381"
1212

13-
client "github.com/lidofinance/dc4bc/client/types"
1413
"github.com/syndtr/goleveldb/leveldb"
1514
"github.com/tyler-smith/go-bip39"
1615
"golang.org/x/crypto/pbkdf2"
16+
17+
client "github.com/lidofinance/dc4bc/client/types"
1718
)
1819

1920
const (

airgapped/storage_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ import (
55
"os"
66
"testing"
77

8-
client "github.com/lidofinance/dc4bc/client/types"
98
"github.com/stretchr/testify/require"
9+
10+
client "github.com/lidofinance/dc4bc/client/types"
1011
)
1112

1213
func TestMachine_DropOperationsLog(t *testing.T) {

airgapped/types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import (
44
"fmt"
55
"strings"
66

7-
"github.com/lidofinance/dc4bc/dkg"
87
"github.com/syndtr/goleveldb/leveldb/util"
8+
9+
"github.com/lidofinance/dc4bc/dkg"
910
)
1011

1112
const (

client/api/http_api/handlers/dkg.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"github.com/censync/go-dto"
1010
"github.com/censync/go-validator"
1111
"github.com/labstack/echo/v4"
12+
1213
. "github.com/lidofinance/dc4bc/client/api/dto"
1314
cs "github.com/lidofinance/dc4bc/client/api/http_api/context_service"
1415
req "github.com/lidofinance/dc4bc/client/api/http_api/requests"

client/api/http_api/handlers/fsm.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"net/http"
55

66
"github.com/labstack/echo/v4"
7+
78
. "github.com/lidofinance/dc4bc/client/api/dto"
89
cs "github.com/lidofinance/dc4bc/client/api/http_api/context_service"
910
req "github.com/lidofinance/dc4bc/client/api/http_api/requests"

client/api/http_api/handlers/keys.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"net/http"
55

66
"github.com/labstack/echo/v4"
7+
78
cs "github.com/lidofinance/dc4bc/client/api/http_api/context_service"
89
)
910

0 commit comments

Comments
 (0)