toxcore-0.2.12: A Tox protocol implementation in Haskell
Safe HaskellNone
LanguageHaskell2010

Network.Tox.Crypto.Key

Documentation

class IsEncoding a => CryptoNumber a where Source #

Methods

encodedByteSize :: proxy a -> Int Source #

Instances

Instances details
CryptoNumber SecretKey Source # 
Instance details

Defined in Network.Tox.Crypto.Key

Methods

encodedByteSize :: proxy SecretKey -> Int Source #

CryptoNumber PublicKey Source # 
Instance details

Defined in Network.Tox.Crypto.Key

Methods

encodedByteSize :: proxy PublicKey -> Int Source #

CryptoNumber CombinedKey Source # 
Instance details

Defined in Network.Tox.Crypto.Key

CryptoNumber Nonce Source # 
Instance details

Defined in Network.Tox.Crypto.Key

Methods

encodedByteSize :: proxy Nonce -> Int Source #

CryptoNumber Signature Source # 
Instance details

Defined in Network.Tox.Crypto.Key

Methods

encodedByteSize :: proxy Signature -> Int Source #

newtype Key a Source #

Constructors

Key 

Fields

Instances

Instances details
Eq a => Eq (Key a) Source # 
Instance details

Defined in Network.Tox.Crypto.Key

Methods

(==) :: Key a -> Key a -> Bool #

(/=) :: Key a -> Key a -> Bool #

Ord a => Ord (Key a) Source # 
Instance details

Defined in Network.Tox.Crypto.Key

Methods

compare :: Key a -> Key a -> Ordering #

(<) :: Key a -> Key a -> Bool #

(<=) :: Key a -> Key a -> Bool #

(>) :: Key a -> Key a -> Bool #

(>=) :: Key a -> Key a -> Bool #

max :: Key a -> Key a -> Key a #

min :: Key a -> Key a -> Key a #

CryptoNumber a => Read (Key a) Source # 
Instance details

Defined in Network.Tox.Crypto.Key

CryptoNumber a => Show (Key a) Source # 
Instance details

Defined in Network.Tox.Crypto.Key

Methods

showsPrec :: Int -> Key a -> ShowS #

show :: Key a -> String #

showList :: [Key a] -> ShowS #

CryptoNumber a => Arbitrary (Key a) Source # 
Instance details

Defined in Network.Tox.Crypto.Key

Methods

arbitrary :: Gen (Key a) #

shrink :: Key a -> [Key a] #

CryptoNumber a => Binary (Key a) Source # 
Instance details

Defined in Network.Tox.Crypto.Key

Methods

put :: Key a -> Put #

get :: Get (Key a) #

putList :: [Key a] -> Put #

CryptoNumber a => MessagePack (Key a) Source # 
Instance details

Defined in Network.Tox.Crypto.Key

IsEncoding a => IsEncoding (Key a) Source # 
Instance details

Defined in Network.Tox.Crypto.Key

Methods

encode :: Key a -> ByteString #

decode :: ByteString -> Maybe (Key a) #

encoded :: (Choice p, Applicative f) => p (Key a) (f (Key a)) -> p ByteString (f ByteString) #