emilbayes / noise-protocol

Javascript implementation of the Noise Protocol Framework based on libsodium
ISC License
66 stars 17 forks source link

Add dh.generateKeypair and dh.generateSeedKeypair to the public API #19

Closed hackergrrl closed 1 week ago

hackergrrl commented 1 week ago

Hi @emilbayes!

Problem: There are modules like simple-hypercore-protocol which, unfortunately, reach into the dh object to access these functions, which caused #18.

Solution: This commit exposes them as part of the API proper, hopefully reducing the likelihood of future breakages.

Thanks! If this lands as a minor semver, my next action would be to submit a patch to simple-hypercore-protocol to use this new API. This will unbreak multifeed. 😵‍💫