Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@libp2p/interface-keychain

Package Overview
Dependencies
Maintainers
6
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libp2p/interface-keychain - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

9

dist/src/index.d.ts
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 @@ *

5

package.json
{
"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 @@ *

dist/src/index.d.ts.map

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc