Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

feat!: Add remoteExtensions to connection-encrypter #293

Merged
merged 5 commits into from
Oct 4, 2022

Conversation

MarcoPolo
Copy link
Contributor

@MarcoPolo MarcoPolo commented Sep 27, 2022

fixes #291

earlyData in Noise has been deprecated in favor of a structured protobuf labeled Noise Extensions: libp2p/specs#453.

remoteExtensions and earlyData are both Noise specific. I'm not sure what the value is by having this interface defined here. Probably what we want is a minimum interface that callers expect, but the concrete implementation can return anything as long as it meets the minimum interface. This is a bigger change than I want to take, but probably the better solution that we should do when we have other encryption modules.

BREAKING CHANGE: remoteEarlyData is replaced by generic remoteExtensions

@MarcoPolo MarcoPolo changed the title feat: Add remoteExtensions to connection-encrypter feat!: Add remoteExtensions to connection-encrypter Oct 1, 2022
@mpetrunic mpetrunic merged commit 501c684 into master Oct 4, 2022
@mpetrunic mpetrunic deleted the marco/remote-extensions branch October 4, 2022 10:52
github-actions bot pushed a commit that referenced this pull request Oct 4, 2022
## [@libp2p/interface-connection-encrypter-v3.0.0](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-connection-encrypter-v2.0.2...@libp2p/interface-connection-encrypter-v3.0.0) (2022-10-04)

### ⚠ BREAKING CHANGES

* Add remoteExtensions to connection-encrypter (#293)

### Features

* Add remoteExtensions to connection-encrypter ([#293](#293)) ([501c684](501c684))
@github-actions
Copy link

github-actions bot commented Oct 4, 2022

🎉 This PR is included in version @libp2p/interface-connection-encrypter-v3.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Oct 4, 2022
## [@libp2p/interface-mocks-v5.0.0](https://github.com/libp2p/js-libp2p-interfaces/compare/@libp2p/interface-mocks-v4.0.3...@libp2p/interface-mocks-v5.0.0) (2022-10-04)

### ⚠ BREAKING CHANGES

* Add remoteExtensions to connection-encrypter (#293)

### Features

* Add remoteExtensions to connection-encrypter ([#293](#293)) ([501c684](501c684))

### Dependencies

* update sibling dependencies ([419f947](419f947))
@github-actions
Copy link

github-actions bot commented Oct 4, 2022

🎉 This PR is included in version @libp2p/interface-mocks-v5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ConnectionEncrypter should have a extensions field for Noise Extensions
2 participants