mirror of
https://github.com/fluencelabs/libp2p-ts
synced 2025-03-31 09:21:04 +00:00
9 lines
221 B
TypeScript
9 lines
221 B
TypeScript
// @ts-ignore
|
|
import crypto from 'libp2p-crypto';
|
|
|
|
crypto.keys.generateKeyPair('ed25519', 512, (error, privKey) => {
|
|
privKey.public.hash((error, digest) => {
|
|
// const peerId = new PeerId(digest, privKey);
|
|
});
|
|
});
|