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

@libp2p/keychain

Package Overview
Dependencies
Maintainers
6
Versions
556
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libp2p/keychain - npm Package Compare versions

Comparing version 4.1.5-3c8dd5bbf to 4.1.5-50b897139

36

dist/src/index.d.ts

@@ -87,4 +87,4 @@ /**

* ```TypeScript
* await libp2p.keychain.createKey('keyTest', 'RSA', 4096)
* const pemKey = await libp2p.keychain.exportKey('keyTest', 'password123')
* await libp2p.services.keychain.createKey('keyTest', 'RSA', 4096)
* const pemKey = await libp2p.services.keychain.exportKey('keyTest', 'password123')
* ```

@@ -99,5 +99,5 @@ */

* ```TypeScript
* await libp2p.keychain.createKey('keyTest', 'RSA', 4096)
* const pemKey = await libp2p.keychain.exportKey('keyTest', 'password123')
* const keyInfo = await libp2p.keychain.importKey('keyTestImport', pemKey, 'password123')
* await libp2p.services.keychain.createKey('keyTest', 'RSA', 4096)
* const pemKey = await libp2p.services.keychain.exportKey('keyTest', 'password123')
* const keyInfo = await libp2p.services.keychain.importKey('keyTestImport', pemKey, 'password123')
* ```

@@ -112,3 +112,3 @@ */

* ```TypeScript
* const keyInfo = await libp2p.keychain.importPeer('keyTestImport', peerIdFromString('12D3Foo...'))
* const keyInfo = await libp2p.services.keychain.importPeer('keyTestImport', peerIdFromString('12D3Foo...'))
* ```

@@ -123,3 +123,3 @@ */

* ```TypeScript
* const peerId = await libp2p.keychain.exportPeerId('key-name')
* const peerId = await libp2p.services.keychain.exportPeerId('key-name')
* ```

@@ -134,3 +134,3 @@ */

* ```TypeScript
* const keyInfo = await libp2p.keychain.createKey('keyTest', 'RSA', 4096)
* const keyInfo = await libp2p.services.keychain.createKey('keyTest', 'RSA', 4096)
* ```

@@ -145,3 +145,3 @@ */

* ```TypeScript
* const keyInfos = await libp2p.keychain.listKeys()
* const keyInfos = await libp2p.services.keychain.listKeys()
* ```

@@ -156,4 +156,4 @@ */

* ```TypeScript
* await libp2p.keychain.createKey('keyTest', 'RSA', 4096)
* const keyInfo = await libp2p.keychain.removeKey('keyTest')
* await libp2p.services.keychain.createKey('keyTest', 'RSA', 4096)
* const keyInfo = await libp2p.services.keychain.removeKey('keyTest')
* ```

@@ -168,4 +168,4 @@ */

* ```TypeScript
* await libp2p.keychain.createKey('keyTest', 'RSA', 4096)
* const keyInfo = await libp2p.keychain.renameKey('keyTest', 'keyNewNtest')
* await libp2p.services.keychain.createKey('keyTest', 'RSA', 4096)
* const keyInfo = await libp2p.services.keychain.renameKey('keyTest', 'keyNewNtest')
* ```

@@ -180,4 +180,4 @@ */

* ```TypeScript
* const keyInfo = await libp2p.keychain.createKey('keyTest', 'RSA', 4096)
* const keyInfo2 = await libp2p.keychain.findKeyById(keyInfo.id)
* const keyInfo = await libp2p.services.keychain.createKey('keyTest', 'RSA', 4096)
* const keyInfo2 = await libp2p.services.keychain.findKeyById(keyInfo.id)
* ```

@@ -192,4 +192,4 @@ */

* ```TypeScript
* const keyInfo = await libp2p.keychain.createKey('keyTest', 'RSA', 4096)
* const keyInfo2 = await libp2p.keychain.findKeyByName('keyTest')
* const keyInfo = await libp2p.services.keychain.createKey('keyTest', 'RSA', 4096)
* const keyInfo2 = await libp2p.services.keychain.findKeyByName('keyTest')
* ```

@@ -204,3 +204,3 @@ */

* ```TypeScript
* await libp2p.keychain.rotateKeychainPass('oldPassword', 'newPassword')
* await libp2p.services.keychain.rotateKeychainPass('oldPassword', 'newPassword')
* ```

@@ -207,0 +207,0 @@ */

{
"name": "@libp2p/keychain",
"version": "4.1.5-3c8dd5bbf",
"version": "4.1.5-50b897139",
"description": "Key management and cryptographically protected messages",

@@ -62,5 +62,5 @@ "license": "Apache-2.0 OR MIT",

"dependencies": {
"@libp2p/crypto": "4.1.9-3c8dd5bbf",
"@libp2p/interface": "1.7.0-3c8dd5bbf",
"@libp2p/peer-id": "4.2.4-3c8dd5bbf",
"@libp2p/crypto": "4.1.9-50b897139",
"@libp2p/interface": "1.7.0-50b897139",
"@libp2p/peer-id": "4.2.4-50b897139",
"interface-datastore": "^8.2.11",

@@ -73,4 +73,4 @@ "merge-options": "^3.0.4",

"devDependencies": {
"@libp2p/logger": "4.0.20-3c8dd5bbf",
"@libp2p/peer-id-factory": "4.2.4-3c8dd5bbf",
"@libp2p/logger": "4.0.20-50b897139",
"@libp2p/peer-id-factory": "4.2.4-50b897139",
"aegir": "^44.0.1",

@@ -77,0 +77,0 @@ "datastore-core": "^9.2.9"

@@ -95,4 +95,4 @@ /**

* ```TypeScript
* await libp2p.keychain.createKey('keyTest', 'RSA', 4096)
* const pemKey = await libp2p.keychain.exportKey('keyTest', 'password123')
* await libp2p.services.keychain.createKey('keyTest', 'RSA', 4096)
* const pemKey = await libp2p.services.keychain.exportKey('keyTest', 'password123')
* ```

@@ -108,5 +108,5 @@ */

* ```TypeScript
* await libp2p.keychain.createKey('keyTest', 'RSA', 4096)
* const pemKey = await libp2p.keychain.exportKey('keyTest', 'password123')
* const keyInfo = await libp2p.keychain.importKey('keyTestImport', pemKey, 'password123')
* await libp2p.services.keychain.createKey('keyTest', 'RSA', 4096)
* const pemKey = await libp2p.services.keychain.exportKey('keyTest', 'password123')
* const keyInfo = await libp2p.services.keychain.importKey('keyTestImport', pemKey, 'password123')
* ```

@@ -122,3 +122,3 @@ */

* ```TypeScript
* const keyInfo = await libp2p.keychain.importPeer('keyTestImport', peerIdFromString('12D3Foo...'))
* const keyInfo = await libp2p.services.keychain.importPeer('keyTestImport', peerIdFromString('12D3Foo...'))
* ```

@@ -134,3 +134,3 @@ */

* ```TypeScript
* const peerId = await libp2p.keychain.exportPeerId('key-name')
* const peerId = await libp2p.services.keychain.exportPeerId('key-name')
* ```

@@ -146,3 +146,3 @@ */

* ```TypeScript
* const keyInfo = await libp2p.keychain.createKey('keyTest', 'RSA', 4096)
* const keyInfo = await libp2p.services.keychain.createKey('keyTest', 'RSA', 4096)
* ```

@@ -158,3 +158,3 @@ */

* ```TypeScript
* const keyInfos = await libp2p.keychain.listKeys()
* const keyInfos = await libp2p.services.keychain.listKeys()
* ```

@@ -170,4 +170,4 @@ */

* ```TypeScript
* await libp2p.keychain.createKey('keyTest', 'RSA', 4096)
* const keyInfo = await libp2p.keychain.removeKey('keyTest')
* await libp2p.services.keychain.createKey('keyTest', 'RSA', 4096)
* const keyInfo = await libp2p.services.keychain.removeKey('keyTest')
* ```

@@ -183,4 +183,4 @@ */

* ```TypeScript
* await libp2p.keychain.createKey('keyTest', 'RSA', 4096)
* const keyInfo = await libp2p.keychain.renameKey('keyTest', 'keyNewNtest')
* await libp2p.services.keychain.createKey('keyTest', 'RSA', 4096)
* const keyInfo = await libp2p.services.keychain.renameKey('keyTest', 'keyNewNtest')
* ```

@@ -196,4 +196,4 @@ */

* ```TypeScript
* const keyInfo = await libp2p.keychain.createKey('keyTest', 'RSA', 4096)
* const keyInfo2 = await libp2p.keychain.findKeyById(keyInfo.id)
* const keyInfo = await libp2p.services.keychain.createKey('keyTest', 'RSA', 4096)
* const keyInfo2 = await libp2p.services.keychain.findKeyById(keyInfo.id)
* ```

@@ -209,4 +209,4 @@ */

* ```TypeScript
* const keyInfo = await libp2p.keychain.createKey('keyTest', 'RSA', 4096)
* const keyInfo2 = await libp2p.keychain.findKeyByName('keyTest')
* const keyInfo = await libp2p.services.keychain.createKey('keyTest', 'RSA', 4096)
* const keyInfo2 = await libp2p.services.keychain.findKeyByName('keyTest')
* ```

@@ -222,3 +222,3 @@ */

* ```TypeScript
* await libp2p.keychain.rotateKeychainPass('oldPassword', 'newPassword')
* await libp2p.services.keychain.rotateKeychainPass('oldPassword', 'newPassword')
* ```

@@ -225,0 +225,0 @@ */

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