fix: use proto.identity

This commit is contained in:
Derrick Hammer 2024-02-27 09:15:18 -05:00
parent b5509f11d1
commit 1ca46dddd4
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ func configureS5Protocol(proto *S5Protocol) (*s5config.NodeConfig, error) {
proto.logger.Fatal("protocol.s5.db_path is required") proto.logger.Fatal("protocol.s5.db_path is required")
} }
derivedSeed := pbkdf2.Key(cfg.KeyPair.ExtractBytes(), []byte("s5"), 10000, 32, sha256.New) derivedSeed := pbkdf2.Key(proto.identity, []byte("s5"), 10000, 32, sha256.New)
p := ed25519.NewKeyFromSeed(derivedSeed) p := ed25519.NewKeyFromSeed(derivedSeed)
cfg.KeyPair = s5ed.New(p) cfg.KeyPair = s5ed.New(p)