Conversation
|
Nonce is managed by the lower level? |
68a04b5 to
af514dd
Compare
|
@domenkozar Absolutely, as said here: https://doc.libsodium.org/secret-key_cryptography/secretstream#algorithm
libsodium handles this for us. :) |
64184c3 to
910072d
Compare
| secretKeyFromHexByteString :: Base16 StrictByteString -> Either Text SecretKey | ||
| secretKeyFromHexByteString hexSecretKey = unsafeDupablePerformIO $ | ||
| case Base16.decodeBase16Untyped (Base16.extractBase16 hexSecretKey) of |
There was a problem hiding this comment.
Sorry for digging this up from the past, but I'm a bit confused by this and just wanted to see if there's some context I'm missing.
Why do we call decodeBase16Untyped . extractBase16 on a Base16 StrictByteString when we could use decodeBase16?
If the value is a Base16 a, shouldn't we assume that it's already Base16-encoded and we can use decodeBase16?
There was a problem hiding this comment.
You're right, this is weird. I'll go over it later. Thanks!

closes #141