bs-diffie-hellman
v0.1.1
Published
Bindings of https://www.npmjs.com/package/diffie-hellman for ReasonML
Downloads
3
Maintainers
Readme
bs-diffiehellman
Binding of diffie-hellman for ReasonML.
installation
Install the npm package
$ npm i bs-diffie-hellman
Add it to the dependencies in your bsconfig.json
"bs-dependencies": ["bs-diffie-hellman"]
Don't forget to build your app
$ bsb -make-world
Design decisions
- string enums -> polymorphic variants
- labeled arguments in constructors
Example
In the example folder you can find an example in ReasonML, which practically directly translates to typescript / javascript :ok_hand: (example from node docs)
Contribution
Any contribution is welcome. Especially because I'm still learning Reason and I might have missed some good practises :sweat_smile: Thank you in advance :wink: