mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-06-14 20:01:36 +00:00
Fix libp2p-crypto imports
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
import * as crypto from 'libp2p-crypto';
|
||||
import {keys} from 'libp2p-crypto';
|
||||
import {KeyPair, PeerId} from "../src/@types/libp2p";
|
||||
|
||||
export async function generateEd25519Keys() {
|
||||
return await crypto.keys.generateKeyPair('ed25519');
|
||||
return await keys.generateKeyPair('ed25519');
|
||||
}
|
||||
|
||||
export function getKeyPairFromPeerId(peerId: PeerId): KeyPair {
|
||||
|
Reference in New Issue
Block a user