-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename Sel.SecretKey.Cipher.Hash to Ciphertext #182
base: main
Are you sure you want to change the base?
Rename Sel.SecretKey.Cipher.Hash to Ciphertext #182
Conversation
@@ -255,16 +255,16 @@ nonceToHexByteString (Nonce nonceForeignPtr) = | |||
-- | A ciphertext consisting of an encrypted message and an authentication tag. | |||
-- | |||
-- @since 0.0.1.0 | |||
data Hash = Hash | |||
data Ciphertext = Ciphertext |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we prefer Ciphertext
or CipherText
?
I noticed a little bit of inconsistency:
In Sel.PublicKey.Cipher
and Sel.SecretKey.Stream
, we have two types named CipherText
. However, in Sel.SecretKey.Stream
, there are functions where this capitalization is not consistent: ciphertextFromHexByteString
, ciphertextToBinary
, etc.
Just let me know which way you guys prefer and I can make the changes throughout the project, if you like.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've personally always used "ciphertext" as a single word but, of course, I'd like to comply with the API that you prefer.
-- | Create a 'Hash' from a binary 'StrictByteString' that you have obtained on your own, | ||
-- usually from the network or disk. It must be a valid hash built from the concatenation | ||
-- of the encrypted message and the authentication tag. | ||
-- | Create a 'Ciphertext' from a hexadecimal-encoded 'StrictByteString' that | ||
-- you have obtained on your own, usually from the network or disk. It must be | ||
-- a valid ciphertext built from the concatenation of the encrypted message and | ||
-- the authentication tag. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any idea what line width we're generally targeting? I changed this to 80 chars when updating the docs, but I'm happy to comply with whatever you prefer.
Resolves #181