Use Secp256k1 keys in accordance to the interop spec

This commit is contained in:
Zahary Karadjov 2019-09-09 20:16:01 -04:00
parent cdff79ec6d
commit c3adac44f2
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
2 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@ else:
result = conf.dataDir / networkKeyFilename
if not fileExists(result):
createDir conf.dataDir.string
let pk = PrivateKey.random(Ed25519)
let pk = PrivateKey.random(Secp256k1)
writeFile(result, pk.getBytes)
proc getPersistentNetIdentity*(conf: BeaconNodeConf): Eth2NodeIdentity =

2
vendor/nim-libp2p vendored

@ -1 +1 @@
Subproject commit b6a5096513fffbcf86658da8e92bef83a91d727a
Subproject commit f2b10776dbdfab2986ef35499994028a6809250c