Safe Haskell | Trustworthy |
---|---|
Language | Haskell2010 |
Documentation
class IsEncoding a => CryptoNumber a where Source #
encodedByteSize :: Proxy a -> Int Source #
Instances
CryptoNumber SecretKey Source # | |
Defined in Network.Tox.Crypto.Key | |
CryptoNumber PublicKey Source # | |
Defined in Network.Tox.Crypto.Key | |
CryptoNumber CombinedKey Source # | |
Defined in Network.Tox.Crypto.Key encodedByteSize :: Proxy CombinedKey -> Int Source # | |
CryptoNumber Nonce Source # | |
Defined in Network.Tox.Crypto.Key |
Instances
Eq a => Eq (Key a) Source # | |
Ord a => Ord (Key a) Source # | |
CryptoNumber a => Read (Key a) Source # | |
CryptoNumber a => Show (Key a) Source # | |
CryptoNumber a => Arbitrary (Key a) Source # | |
CryptoNumber a => Binary (Key a) Source # | |
CryptoNumber a => MessagePack (Key a) Source # | |
Defined in Network.Tox.Crypto.Key | |
IsEncoding a => IsEncoding (Key a) Source # | |
Defined in Network.Tox.Crypto.Key encode :: Key a -> ByteString # decode :: ByteString -> Maybe (Key a) # encoded :: (Choice p, Applicative f) => p (Key a) (f (Key a)) -> p ByteString (f ByteString) # |
type CombinedKey = Key CombinedKey Source #
keyToInteger :: IsEncoding a => Key a -> Integer Source #
decode :: (CryptoNumber a, MonadFail m) => ByteString -> m (Key a) Source #