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

@relaycorp/relaynet-core

Package Overview
Dependencies
Maintainers
2
Versions
293
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@relaycorp/relaynet-core - npm Package Compare versions

Comparing version 1.85.0 to 1.86.0

6

build/main/lib/nodes/channels/Channel.js

@@ -22,8 +22,4 @@ "use strict";

async makeMessage(payload, messageConstructor, options = {}) {
const recipient = {
id: this.peer.id,
internetAddress: this.peer.internetAddress,
};
const payloadSerialised = await this.wrapMessagePayload(payload);
const message = new messageConstructor(recipient, this.deliveryAuthPath.leafCertificate, Buffer.from(payloadSerialised), {
const message = new messageConstructor(this.getOutboundRAMFRecipient(), this.deliveryAuthPath.leafCertificate, Buffer.from(payloadSerialised), {
...options,

@@ -30,0 +26,0 @@ senderCaCertificateChain: this.deliveryAuthPath.certificateAuthorities,

2

build/main/lib/nodes/Node.d.ts

@@ -10,2 +10,3 @@ import { Certificate } from '../crypto/x509/Certificate';

import { ChannelConstructor } from './channels/ChannelConstructor';
import { Channel } from './channels/Channel';
export declare abstract class Node<Payload extends PayloadPlaintext, PeerAddress extends PeerInternetAddress> {

@@ -40,2 +41,3 @@ readonly id: string;

unwrapMessagePayload<P extends Payload>(message: RAMFMessage<P>): Promise<P>;
getChannel(peerId: string, peerInternetAddress: PeerAddress): Promise<Channel<Payload, PeerAddress> | null>;
}

@@ -59,4 +59,20 @@ "use strict";

}
async getChannel(peerId, peerInternetAddress) {
const internetGatewayPublicKey = await this.keyStores.publicKeyStore.retrieveIdentityKey(peerId);
if (!internetGatewayPublicKey) {
return null;
}
const privateGatewayDeliveryAuth = await this.keyStores.certificateStore.retrieveLatest(this.id, peerId);
if (!privateGatewayDeliveryAuth) {
return null;
}
const internetGateway = {
id: peerId,
identityPublicKey: internetGatewayPublicKey,
internetAddress: peerInternetAddress,
};
return new this.channelConstructor(this, internetGateway, privateGatewayDeliveryAuth, this.keyStores, this.cryptoOptions);
}
}
exports.Node = Node;
//# sourceMappingURL=Node.js.map

@@ -23,3 +23,2 @@ import { Certificate } from '../crypto/x509/Certificate';

saveInternetGatewayChannel(deliveryAuthorization: Certificate, internetGatewayIdentityCertificate: Certificate, internetGatewaySessionPublicKey: SessionKey): Promise<void>;
retrieveInternetGatewayChannel(internetGatewayId: string, internetGatewayInternetAddress: string): Promise<PrivateInternetGatewayChannel | null>;
}

@@ -44,20 +44,4 @@ "use strict";

}
async retrieveInternetGatewayChannel(internetGatewayId, internetGatewayInternetAddress) {
const internetGatewayPublicKey = await this.keyStores.publicKeyStore.retrieveIdentityKey(internetGatewayId);
if (!internetGatewayPublicKey) {
return null;
}
const privateGatewayDeliveryAuth = await this.keyStores.certificateStore.retrieveLatest(this.id, internetGatewayId);
if (!privateGatewayDeliveryAuth) {
return null;
}
const internetGateway = {
id: internetGatewayId,
identityPublicKey: internetGatewayPublicKey,
internetAddress: internetGatewayInternetAddress,
};
return new PrivateInternetGatewayChannel_1.PrivateInternetGatewayChannel(this, internetGateway, privateGatewayDeliveryAuth, this.keyStores, this.cryptoOptions);
}
}
exports.PrivateGateway = PrivateGateway;
//# sourceMappingURL=PrivateGateway.js.map
{
"name": "@relaycorp/relaynet-core",
"version": "1.85.0",
"version": "1.86.0",
"author": {

@@ -5,0 +5,0 @@ "email": "no-reply@relaycorp.tech",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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