New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@libp2p/interface-connection-encrypter

Package Overview
Dependencies
Maintainers
6
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libp2p/interface-connection-encrypter - npm Package Compare versions

Comparing version 1.0.3 to 2.0.0

7

dist/src/index.d.ts
import type { PeerId } from '@libp2p/interface-peer-id';
import type { Duplex } from 'it-stream-types';
import type { Uint8ArrayList } from 'uint8arraylist';
/**

@@ -12,10 +13,10 @@ * A libp2p connection encrypter module must be compliant to this interface

*/
secureOutbound: (localPeer: PeerId, connection: Duplex<Uint8Array>, remotePeer: PeerId) => Promise<SecuredConnection>;
secureOutbound: (localPeer: PeerId, connection: Duplex<Uint8ArrayList>, remotePeer: PeerId) => Promise<SecuredConnection>;
/**
* Decrypt incoming data.
*/
secureInbound: (localPeer: PeerId, connection: Duplex<Uint8Array>, remotePeer?: PeerId) => Promise<SecuredConnection>;
secureInbound: (localPeer: PeerId, connection: Duplex<Uint8ArrayList>, remotePeer?: PeerId) => Promise<SecuredConnection>;
}
export interface SecuredConnection {
conn: Duplex<Uint8Array>;
conn: Duplex<Uint8ArrayList>;
remoteEarlyData: Uint8Array;

@@ -22,0 +23,0 @@ remotePeer: PeerId;

{
"name": "@libp2p/interface-connection-encrypter",
"version": "1.0.3",
"version": "2.0.0",
"description": "Connection Encrypter interface for libp2p",

@@ -89,11 +89,11 @@ "license": "Apache-2.0 OR MIT",

{
"type": "chore",
"type": "docs",
"release": "patch"
},
{
"type": "docs",
"type": "test",
"release": "patch"
},
{
"type": "test",
"type": "deps",
"release": "patch"

@@ -128,5 +128,9 @@ },

"type": "docs",
"section": "Trivial Changes"
"section": "Documentation"
},
{
"type": "deps",
"section": "Dependencies"
},
{
"type": "test",

@@ -154,3 +158,4 @@ "section": "Tests"

"@libp2p/interface-peer-id": "^1.0.0",
"it-stream-types": "^1.0.4"
"it-stream-types": "^1.0.4",
"uint8arraylist": "^2.1.1"
},

@@ -157,0 +162,0 @@ "devDependencies": {

import type { PeerId } from '@libp2p/interface-peer-id'
import type { Duplex } from 'it-stream-types'
import type { Uint8ArrayList } from 'uint8arraylist'

@@ -14,13 +15,13 @@ /**

*/
secureOutbound: (localPeer: PeerId, connection: Duplex<Uint8Array>, remotePeer: PeerId) => Promise<SecuredConnection>
secureOutbound: (localPeer: PeerId, connection: Duplex<Uint8ArrayList>, remotePeer: PeerId) => Promise<SecuredConnection>
/**
* Decrypt incoming data.
*/
secureInbound: (localPeer: PeerId, connection: Duplex<Uint8Array>, remotePeer?: PeerId) => Promise<SecuredConnection>
secureInbound: (localPeer: PeerId, connection: Duplex<Uint8ArrayList>, remotePeer?: PeerId) => Promise<SecuredConnection>
}
export interface SecuredConnection {
conn: Duplex<Uint8Array>
conn: Duplex<Uint8ArrayList>
remoteEarlyData: Uint8Array
remotePeer: PeerId
}

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