We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2293bbb commit 1442c30Copy full SHA for 1442c30
packages/peer-id-factory/src/index.ts
@@ -2,8 +2,8 @@ import { generateKeyPair, marshalPrivateKey, unmarshalPrivateKey, marshalPublicK
2
import { peerIdFromKeys, peerIdFromBytes } from '@libp2p/peer-id'
3
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
4
import { PeerIdProto } from './proto.js'
5
-import type { RSAPeerId, Ed25519PeerId, Secp256k1PeerId, PeerId } from '@libp2p/interface/peer-id'
6
import type { PublicKey, PrivateKey } from '@libp2p/interface/keys'
+import type { RSAPeerId, Ed25519PeerId, Secp256k1PeerId, PeerId } from '@libp2p/interface/peer-id'
7
8
export const createEd25519PeerId = async (): Promise<Ed25519PeerId> => {
9
const key = await generateKeyPair('Ed25519')
0 commit comments