Re:Nanocoin – A minimal cryptocurrency implemented in Haskell
by mrkgnao on Thursday August 31, 2017 @10:48AM
(#15140675)
The extensive README is also a pretty good intro to how one can do crypto (as in cryptography: get off my lawn!) in Haskell using the excellent cryptonite library.
Re:Nanocoin – A minimal cryptocurrency implemented in Haskell
by somenewacc on Thursday August 31, 2017 @01:18PM
(#15141930)
Is cryptonite anything like production ready? I mean, does it protect against timing side channels (perhaps using crypto instructions like AES-NI), etc.
Something I didn't like about it is that it exposes crypto primitives, including stuff like TripleDES, with no warning[0]. The tutorial also has you handle IVs directly.[1]
Re:Nanocoin – A minimal cryptocurrency implemented in Haskell
by lambdaxdotx on Thursday August 31, 2017 @01:37PM
(#15142091)
If you notice, it only exposes the _types_ of the TripleDES, not the constructors, meaning you don't have access to the values unless you clone the cryptonite repo and modify it to expose the constructors, giving access to the values at run time.
Also, the tutorial is a bit advanced and is meant to show a particular use case of using symmetric block ciphers for encryption/decryption, you are not always using such bare-bones primitives-- check out the hashing part of the README.md in Nanocoin.
IMO it's production ready, and has most all potential known attacks documented above the functions that are vulnerable.
For those who won't click through to TFR:
Something I didn't like about it is that it exposes crypto primitives, including stuff like TripleDES, with no warning[0]. The tutorial also has you handle IVs directly.[1]
[0] https://hackage.haskell.org/package/cryptonite-0.24/docs/Cry...
[1] https://hackage.haskell.org/package/cryptonite-0.24/docs/Cry...
Also, the tutorial is a bit advanced and is meant to show a particular use case of using symmetric block ciphers for encryption/decryption, you are not always using such bare-bones primitives-- check out the hashing part of the README.md in Nanocoin.
IMO it's production ready, and has most all potential known attacks documented above the functions that are vulnerable.
https://github.com/wyc/haschain/blob/master/Secp256K1.hs
Should probably wrap it into a Group or something. Of course it's not secure, just for fun.
Don't like it? Hide it.