Closed shlevy closed 3 years ago
I agree that most types should be wrapped in a newtype
. I will start work on that for 1.0.0
as time permits, but certainly don't mind help on that front.
I've added a Signature
type to the Sign and an Authenticator
type to the SecretBox module.
Ideally I'd like to expand on that and add Plaintext, Ciphertext and sort of an AuthedPlaintext types in a useful way.
Ideally I'd like to expand on that and add Plaintext, Ciphertext and sort of an AuthedPlaintext types in a useful way.
I thought on this some more and I think for the most part it's just busywork and doesn't add much safety.
In my code I have:
Would be nice to have something like this upstream and the relevant functions take a
Signature
instead of aBytestring