-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add experimental WebRTC support to multiaddr #2371
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automatically approving tomaka's pull requests. This auto-approval will be removed once more maintainers are active.
twiggy diff reportDifference in .wasm size before and after this pull request.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
I would be in favor of being consistent with the way
@tomaka would you consider a multihash as "super generic" already? 👼 |
A browser client, in order to connect, must know specifically the SHA256 hash of the certificate. |
cc @mxinden if you're interested
cc #1712
The payload of
/certhash
isn't documented in libp2p/specs#412.I suspect that ultimately people will want to make
/certhash
super generic and future-proof and over-engineered and all (in case in the vague future it might eventually be used for something else, even though we all know that this will likely never happen), but for now I went with a fixed 32 bytes payload that is hexadecimal-encoded without the0x
prefix. The certificate hash is put as hexadecimal in the SDP packet, so an hexadecimal payload will make it a bit easier to debug if things work.This is all marked as
experimental-
until we finish implementing it, so that there's no possible confusion with versions that are incompatible with each other and that kind of things.