diff options
author | Joe Crayne <joe@jerkface.net> | 2020-01-09 12:10:10 -0500 |
---|---|---|
committer | Joe Crayne <joe@jerkface.net> | 2020-01-09 12:10:10 -0500 |
commit | 5e2f6f9f8b78b90f0becb60e735abbd62bac6ca6 (patch) | |
tree | 9d7398a42a2925fe4f7e760e7d5ee9ae0a0a75fe /dht/src/Data/Tox | |
parent | b9194d4637ddfc3b9f762d2e4e29a318087e02db (diff) |
Moved Codec.AsciiKey256 to tox-crypto.
Diffstat (limited to 'dht/src/Data/Tox')
-rw-r--r-- | dht/src/Data/Tox/Msg.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dht/src/Data/Tox/Msg.hs b/dht/src/Data/Tox/Msg.hs index 4398586f..3188d86f 100644 --- a/dht/src/Data/Tox/Msg.hs +++ b/dht/src/Data/Tox/Msg.hs | |||
@@ -259,13 +259,13 @@ instance Serialize ChatID where | |||
259 | 259 | ||
260 | instance Read ChatID where | 260 | instance Read ChatID where |
261 | readsPrec _ s | 261 | readsPrec _ s |
262 | | Right bs <- parseToken32 s | 262 | | Right bs <- parseBase64Key256 s |
263 | , CryptoPassed ed <- Ed25519.publicKey bs | 263 | , CryptoPassed ed <- Ed25519.publicKey bs |
264 | = [ (ChatID ed, Prelude.drop 43 s) ] | 264 | = [ (ChatID ed, Prelude.drop 43 s) ] |
265 | | otherwise = [] | 265 | | otherwise = [] |
266 | 266 | ||
267 | instance Show ChatID where | 267 | instance Show ChatID where |
268 | show (ChatID ed) = showToken32 ed | 268 | show (ChatID ed) = showBase64Key256 ed |
269 | 269 | ||
270 | data InviteType = GroupInvite { groupName :: Text } | 270 | data InviteType = GroupInvite { groupName :: Text } |
271 | | AcceptedInvite | 271 | | AcceptedInvite |