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

Fix noise prologue generation #18

Merged
merged 9 commits into from
Aug 15, 2022
Merged

Fix noise prologue generation #18

merged 9 commits into from
Aug 15, 2022

Conversation

ckousik
Copy link
Collaborator

@ckousik ckousik commented Aug 15, 2022

No description provided.

src/sdp.ts Outdated Show resolved Hide resolved
let fp = mhdecoded.digest.reduce((str, byte) => str + byte.toString(16).padStart(2, '0'), '');
fp = fp.match(/.{1,2}/g)!.join(':');

return `${prefix} ${fp}`;
Copy link
Contributor

Choose a reason for hiding this comment

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

Certhash contains a space?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This writes the fingerprint in SDP format <hash algorithm> <fingerprint>.

src/sdp.ts Show resolved Hide resolved
src/sdp.ts Outdated Show resolved Hide resolved
src/transport.ts Outdated Show resolved Hide resolved
src/transport.ts Outdated Show resolved Hide resolved
@ddimaria ddimaria linked an issue Aug 15, 2022 that may be closed by this pull request
17 tasks
@ckousik ckousik merged commit 2556b17 into develop Aug 15, 2022
@github-actions
Copy link

🎉 This PR is included in version 1.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.

Implement webrtc in js-libp2p
3 participants