mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-06-29 02:01:37 +00:00
Merge branch 'morrigan/fix-interop' into revert-51-remove-bcrypto-dependency
# Conflicts: # package.json # src/@types/basic.ts # src/handshakes/ik.ts # src/handshakes/xx.ts # yarn.lock
This commit is contained in:
@ -1,8 +1,9 @@
|
||||
import * as crypto from 'libp2p-crypto';
|
||||
import {KeyPair, PeerId} from "../src/@types/libp2p";
|
||||
import {keys} from 'libp2p-crypto';
|
||||
import {KeyPair} from "../src/@types/libp2p";
|
||||
import PeerId from "peer-id";
|
||||
|
||||
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