Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

fix!: remove getPublicKey method #376

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions packages/interface-libp2p/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,10 +469,4 @@ export interface Libp2p extends Startable, EventEmitter<Libp2pEvents> {
* ```
*/
fetch: (peer: PeerId | Multiaddr, key: string, options?: AbortOptions) => Promise<Uint8Array | null>

/**
* Returns the public key for the passed PeerId. If the PeerId is of the 'RSA' type
* this may mean searching the DHT if the key is not present in the KeyStore.
*/
getPublicKey: (peer: PeerId, options?: AbortOptions) => Promise<Uint8Array>
}