UNPKG
@chainsafe/libp2p-quic
Version:
latest (1.1.8)
1.1.8
1.1.7
1.1.3
1.1.2
1.1.1
1.1.0
1.0.5
1.0.4
1.0.3
A QUIC transport for libp2p
github.com/ChainSafe/js-libp2p-quic
ChainSafe/js-libp2p-quic
@chainsafe/libp2p-quic
/
dist
/
test
/
util.js
9 lines
•
286 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
import
{ generateKeyPair }
from
'@libp2p/crypto/keys'
;
import
{ defaultLogger }
from
'@libp2p/logger'
;
export
async
function
createComponents
(
) {
return
{
privateKey
:
await
generateKeyPair
(
'Ed25519'
),
logger
:
defaultLogger
() }; }
//# sourceMappingURL=util.js.map