mirror of
https://github.com/codex-storage/nim-libp2p.git
synced 2025-01-11 19:44:18 +00:00
use ECDSA as defaults, faster in tests
This commit is contained in:
parent
667691f784
commit
007b0219f3
@ -17,7 +17,7 @@ proc newStandardSwitch*(privKey = none(PrivateKey),
|
||||
result = newMplex(conn)
|
||||
|
||||
let
|
||||
seckey = privKey.get(otherwise = PrivateKey.random(RSA))
|
||||
seckey = privKey.get(otherwise = PrivateKey.random(ECDSA))
|
||||
peerInfo = PeerInfo.init(seckey, @[address])
|
||||
mplexProvider = newMuxerProvider(createMplex, MplexCodec)
|
||||
transports = @[Transport(newTransport(TcpTransport))]
|
||||
|
Loading…
x
Reference in New Issue
Block a user