summaryrefslogtreecommitdiff
path: root/src/Crypto/Tox.hs
diff options
context:
space:
mode:
authorJames Crayne <jim.crayne@gmail.com>2018-05-29 02:03:41 +0000
committerJames Crayne <jim.crayne@gmail.com>2018-05-29 02:03:41 +0000
commitefc45ad4c240529913e4f7d4f0c9f880cba6c0f9 (patch)
tree3abd53a933a6dd068a77f18d80623b314c1ecdbc /src/Crypto/Tox.hs
parent4728116433ddd449dc4c654847ed2f35a38605db (diff)
Show instance for SymmetricKey, more debug prints
Diffstat (limited to 'src/Crypto/Tox.hs')
-rw-r--r--src/Crypto/Tox.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Crypto/Tox.hs b/src/Crypto/Tox.hs
index 9b7e82c0..acb98e3e 100644
--- a/src/Crypto/Tox.hs
+++ b/src/Crypto/Tox.hs
@@ -515,6 +515,9 @@ newSecretsCache = atomically (SecretsCache <$> newTVar MM.empty)
515 515
516newtype SymmetricKey = SymmetricKey ByteString 516newtype SymmetricKey = SymmetricKey ByteString
517 517
518instance Show SymmetricKey where
519 show (SymmetricKey bs) = bin2base64 bs
520
518data TransportCrypto = TransportCrypto 521data TransportCrypto = TransportCrypto
519 { transportSecret :: SecretKey 522 { transportSecret :: SecretKey
520 , transportPublic :: PublicKey 523 , transportPublic :: PublicKey