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 2.0.0 to 2.0.1

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';
/**

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

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

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

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

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

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

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

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