fix: use proto.identity
This commit is contained in:
parent
b5509f11d1
commit
1ca46dddd4
|
@ -133,7 +133,7 @@ func configureS5Protocol(proto *S5Protocol) (*s5config.NodeConfig, error) {
|
|||
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)
|
||||
cfg.KeyPair = s5ed.New(p)
|
||||
|
|
Loading…
Reference in New Issue