Safe Haskell | None |
---|---|
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 encodedByteSize :: proxy SecretKey -> Int Source # | |
CryptoNumber PublicKey Source # | |
Defined in Network.Tox.Crypto.Key encodedByteSize :: proxy PublicKey -> Int Source # | |
CryptoNumber CombinedKey Source # | |
Defined in Network.Tox.Crypto.Key encodedByteSize :: proxy CombinedKey -> Int Source # | |
CryptoNumber Nonce Source # | |
Defined in Network.Tox.Crypto.Key encodedByteSize :: proxy Nonce -> Int Source # | |
CryptoNumber Signature Source # | |
Defined in Network.Tox.Crypto.Key encodedByteSize :: proxy Signature -> Int Source # |
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 toObject :: Config -> Key a -> Object # fromObjectWith :: (Applicative m, Monad m, MonadValidate DecodeError m) => Config -> Object -> m (Key a) # | |
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, MonadValidate DecodeError m) => ByteString -> m (Key a) Source #