This commit is contained in:
mcrakhman 2022-09-26 22:26:42 +02:00
parent 0b97aaa302
commit 67f0b82ae4
No known key found for this signature in database
GPG Key ID: DED12CFEF5B8396B
2 changed files with 2 additions and 5 deletions

View File

@ -15,7 +15,6 @@ import (
"github.com/anytypeio/go-anytype-infrastructure-experiments/common/nodeconf" "github.com/anytypeio/go-anytype-infrastructure-experiments/common/nodeconf"
"github.com/anytypeio/go-anytype-infrastructure-experiments/config" "github.com/anytypeio/go-anytype-infrastructure-experiments/config"
"github.com/anytypeio/go-anytype-infrastructure-experiments/node/nodespace" "github.com/anytypeio/go-anytype-infrastructure-experiments/node/nodespace"
"github.com/anytypeio/go-anytype-infrastructure-experiments/service/node"
"go.uber.org/zap" "go.uber.org/zap"
"net/http" "net/http"
_ "net/http/pprof" _ "net/http/pprof"
@ -90,7 +89,6 @@ func main() {
func Bootstrap(a *app.App) { func Bootstrap(a *app.App) {
a.Register(account.New()). a.Register(account.New()).
Register(node.New()).
Register(nodeconf.New()). Register(nodeconf.New()).
Register(secure.New()). Register(secure.New()).
Register(dialer.New()). Register(dialer.New()).

View File

@ -6,7 +6,7 @@ import (
"github.com/anytypeio/go-anytype-infrastructure-experiments/app" "github.com/anytypeio/go-anytype-infrastructure-experiments/app"
"github.com/anytypeio/go-anytype-infrastructure-experiments/app/logger" "github.com/anytypeio/go-anytype-infrastructure-experiments/app/logger"
"github.com/anytypeio/go-anytype-infrastructure-experiments/config" "github.com/anytypeio/go-anytype-infrastructure-experiments/config"
"github.com/anytypeio/go-anytype-infrastructure-experiments/util/keys/asymmetric/signingkey" "github.com/anytypeio/go-anytype-infrastructure-experiments/util/keys"
"github.com/libp2p/go-libp2p-core/crypto" "github.com/libp2p/go-libp2p-core/crypto"
"github.com/libp2p/go-libp2p-core/peer" "github.com/libp2p/go-libp2p-core/peer"
"github.com/libp2p/go-libp2p-core/sec" "github.com/libp2p/go-libp2p-core/sec"
@ -37,8 +37,7 @@ type service struct {
func (s *service) Init(a *app.App) (err error) { func (s *service) Init(a *app.App) (err error) {
account := a.MustComponent(config.CName).(*config.Config).Account account := a.MustComponent(config.CName).(*config.Config).Account
decoder := signingkey.NewEDPrivKeyDecoder() pkb, err := keys.DecodeBytesFromString(account.SigningKey)
pkb, err := decoder.DecodeFromStringIntoBytes(account.SigningKey)
if err != nil { if err != nil {
return return
} }