@libp2p/interface-keychain
Advanced tools
Comparing version 2.0.0 to 2.0.1
import type { Multibase } from 'multiformats/bases/interface'; | ||
import type { PeerId } from '@libp2p/interface-peer-id'; | ||
export interface KeyInfo { | ||
@@ -34,2 +35,10 @@ /** | ||
/** | ||
* Import a new key from a PeerId with a private key component | ||
* | ||
* ```js | ||
* const keyInfo = await libp2p.keychain.importPeer('keyTestImport', peerIdFromString('12D3Foo...')) | ||
* ``` | ||
*/ | ||
importPeer: (name: string, peerId: PeerId) => Promise<KeyInfo>; | ||
/** | ||
* Create a key in the keychain. | ||
@@ -36,0 +45,0 @@ * |
{ | ||
"name": "@libp2p/interface-keychain", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Keychain interface for libp2p", | ||
@@ -135,6 +135,7 @@ "license": "Apache-2.0 OR MIT", | ||
"dependencies": { | ||
"@libp2p/interface-peer-id": "^2.0.0", | ||
"multiformats": "^11.0.0" | ||
}, | ||
"devDependencies": { | ||
"aegir": "^37.7.3" | ||
"aegir": "^37.9.0" | ||
}, | ||
@@ -141,0 +142,0 @@ "typedoc": { |
import type { Multibase } from 'multiformats/bases/interface' | ||
import type { PeerId } from '@libp2p/interface-peer-id' | ||
@@ -40,2 +41,11 @@ export interface KeyInfo { | ||
/** | ||
* Import a new key from a PeerId with a private key component | ||
* | ||
* ```js | ||
* const keyInfo = await libp2p.keychain.importPeer('keyTestImport', peerIdFromString('12D3Foo...')) | ||
* ``` | ||
*/ | ||
importPeer: (name: string, peerId: PeerId) => Promise<KeyInfo> | ||
/** | ||
* Create a key in the keychain. | ||
@@ -42,0 +52,0 @@ * |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15197
217
2
+ Added@libp2p/interface-peer-id@2.0.2(transitive)