Skip to content

swarm: move AddCertHashes to swarm#3330

Merged
sukunrt merged 1 commit intomasterfrom
sukun/remove-certhasher
Aug 7, 2025
Merged

swarm: move AddCertHashes to swarm#3330
sukunrt merged 1 commit intomasterfrom
sukun/remove-certhasher

Conversation

@sukunrt
Copy link
Copy Markdown
Member

@sukunrt sukunrt commented Jul 7, 2025

The simplified idea here is: if we can listen on the addr, we should try adding certhashes to the addr.
This removes dependency on WebTransport and WebRTC Transports.

@sukunrt sukunrt force-pushed the sukun/remove-certhasher branch from 4d04960 to ac162ab Compare July 7, 2025 19:06
@sukunrt sukunrt force-pushed the sukun/remove-certhasher branch from ac162ab to f05a92c Compare July 7, 2025 19:12
@sukunrt sukunrt requested a review from MarcoPolo July 8, 2025 11:02
Comment on lines +965 to +968
// AddCertHashes adds certificate hashes to relevant transport addresses, if there
// are no certhashes already present on the method. It mutates `listenAddrs`.
// This method is useful for adding certhashes to public addresses discovered
// via identify, nat mapping, or provided by the user.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment needs some editing. Maybe:

Suggested change
// AddCertHashes adds certificate hashes to relevant transport addresses, if there
// are no certhashes already present on the method. It mutates `listenAddrs`.
// This method is useful for adding certhashes to public addresses discovered
// via identify, nat mapping, or provided by the user.
// AddCertHashes mutates listenAddrs. It adds applicable certificate hashes to
// the multiaddrs. It will not modify a multiaddr if it already contains a
// certificate hash. This method is useful for adding certhashes to public
// addresses discovered via identify, nat mapping, or provided by the user.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed this. I'll open a separate PR.

@sukunrt sukunrt merged commit fc4a618 into master Aug 7, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants