browserify / diffie-hellman

pure js diffie-hellman
MIT License
95 stars 26 forks source link

Clean up `createDiffieHellman` #12

Closed dcousens closed 8 years ago

dcousens commented 9 years ago

The constructor is a bit of a mess in terms of how it defaults certain arguments, maintaining a difficult-to-track cyclomatic complexity.

It would be nice to reduce it down if possible.