| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Simplex.RemoteControl.Types
Synopsis
- data RCErrorType
- = RCEInternal {
- internalErr :: String
- | RCEIdentity
- | RCENoLocalAddress
- | RCENewController
- | RCENotDiscovered
- | RCETLSStartFailed
- | RCEException {
- exception :: String
- | RCECtrlAuth
- | RCECtrlNotFound
- | RCECtrlError {
- ctrlErr :: String
- | RCEInvitation
- | RCEVersion
- | RCEEncrypt
- | RCEDecrypt
- | RCEBlockSize
- | RCESyntax {
- syntaxErr :: String
- = RCEInternal {
- data RCPVersion
- type VersionRCP = Version RCPVersion
- type VersionRangeRCP = VersionRange RCPVersion
- data RCHostHello = RCHostHello {
- v :: VersionRCP
- ca :: KeyHash
- app :: Value
- kem :: KEMPublicKey
- data RCCtrlHello = RCCtrlHello {
- data RCHostPairing = RCHostPairing {
- caKey :: APrivateSignKey
- caCert :: SignedCertificate
- idPrivKey :: PrivateKeyEd25519
- knownHost :: Maybe KnownHostPairing
- data KnownHostPairing = KnownHostPairing {}
- data RCCtrlAddress = RCCtrlAddress {
- address :: TransportHost
- interface :: Text
- data RCCtrlPairing = RCCtrlPairing {
- caKey :: APrivateSignKey
- caCert :: SignedCertificate
- ctrlFingerprint :: KeyHash
- idPubKey :: PublicKeyEd25519
- dhPrivKey :: PrivateKeyX25519
- prevDhPrivKey :: Maybe PrivateKeyX25519
- data RCHostKeys = RCHostKeys {}
- data RCHostSession = RCHostSession {
- tls :: TLS 'TServer
- sessionKeys :: HostSessKeys
- data HostSessKeys = HostSessKeys {}
- data RCCtrlSession = RCCtrlSession {
- tls :: TLS 'TClient
- sessionKeys :: CtrlSessKeys
- data CtrlSessKeys = CtrlSessKeys {}
- data RCHostEncHello = RCHostEncHello {
- dhPubKey :: PublicKeyX25519
- nonce :: CbNonce
- encBody :: ByteString
- data RCCtrlEncHello
- = RCCtrlEncHello {
- kem :: KEMCiphertext
- encBody :: ByteString
- | RCCtrlEncError {
- nonce :: CbNonce
- encMessage :: ByteString
- = RCCtrlEncHello {
- type SessionCode = ByteString
- type RCStepTMVar a = TMVar (Either RCErrorType a)
- currentRCPVersion :: VersionRCP
- supportedRCPVRange :: VersionRangeRCP
Documentation
data RCErrorType Source #
Constructors
| RCEInternal | |
Fields
| |
| RCEIdentity | |
| RCENoLocalAddress | |
| RCENewController | |
| RCENotDiscovered | |
| RCETLSStartFailed | |
| RCEException | |
Fields
| |
| RCECtrlAuth | |
| RCECtrlNotFound | |
| RCECtrlError | |
Fields
| |
| RCEInvitation | |
| RCEVersion | |
| RCEEncrypt | |
| RCEDecrypt | |
| RCEBlockSize | |
| RCESyntax | |
Fields
| |
Instances
data RCPVersion Source #
Instances
| VersionScope RCPVersion Source # | |
Defined in Simplex.RemoteControl.Types | |
type VersionRCP = Version RCPVersion Source #
type VersionRangeRCP = VersionRange RCPVersion Source #
data RCHostHello Source #
Constructors
| RCHostHello | |
Fields
| |
Instances
| FromJSON RCHostHello Source # | |
Defined in Simplex.RemoteControl.Types Methods parseJSON :: Value -> Parser RCHostHello parseJSONList :: Value -> Parser [RCHostHello] omittedField :: Maybe RCHostHello | |
| ToJSON RCHostHello Source # | |
Defined in Simplex.RemoteControl.Types Methods toJSON :: RCHostHello -> Value toEncoding :: RCHostHello -> Encoding toJSONList :: [RCHostHello] -> Value toEncodingList :: [RCHostHello] -> Encoding omitField :: RCHostHello -> Bool | |
| Show RCHostHello Source # | |
Defined in Simplex.RemoteControl.Types Methods showsPrec :: Int -> RCHostHello -> ShowS show :: RCHostHello -> String showList :: [RCHostHello] -> ShowS | |
data RCCtrlHello Source #
Constructors
| RCCtrlHello | |
Instances
| FromJSON RCCtrlHello Source # | |
Defined in Simplex.RemoteControl.Types Methods parseJSON :: Value -> Parser RCCtrlHello parseJSONList :: Value -> Parser [RCCtrlHello] omittedField :: Maybe RCCtrlHello | |
| ToJSON RCCtrlHello Source # | |
Defined in Simplex.RemoteControl.Types Methods toJSON :: RCCtrlHello -> Value toEncoding :: RCCtrlHello -> Encoding toJSONList :: [RCCtrlHello] -> Value toEncodingList :: [RCCtrlHello] -> Encoding omitField :: RCCtrlHello -> Bool | |
| Show RCCtrlHello Source # | |
Defined in Simplex.RemoteControl.Types Methods showsPrec :: Int -> RCCtrlHello -> ShowS show :: RCCtrlHello -> String showList :: [RCCtrlHello] -> ShowS | |
data RCHostPairing Source #
Long-term part of controller (desktop) connection to host (mobile)
Constructors
| RCHostPairing | |
Fields
| |
data KnownHostPairing Source #
Constructors
| KnownHostPairing | |
Fields | |
data RCCtrlAddress Source #
Constructors
| RCCtrlAddress | |
Fields
| |
Instances
| FromJSON RCCtrlAddress Source # | |
Defined in Simplex.RemoteControl.Types Methods parseJSON :: Value -> Parser RCCtrlAddress parseJSONList :: Value -> Parser [RCCtrlAddress] omittedField :: Maybe RCCtrlAddress | |
| ToJSON RCCtrlAddress Source # | |
Defined in Simplex.RemoteControl.Types Methods toJSON :: RCCtrlAddress -> Value toEncoding :: RCCtrlAddress -> Encoding toJSONList :: [RCCtrlAddress] -> Value toEncodingList :: [RCCtrlAddress] -> Encoding omitField :: RCCtrlAddress -> Bool | |
| Show RCCtrlAddress Source # | |
Defined in Simplex.RemoteControl.Types Methods showsPrec :: Int -> RCCtrlAddress -> ShowS show :: RCCtrlAddress -> String showList :: [RCCtrlAddress] -> ShowS | |
| Eq RCCtrlAddress Source # | |
Defined in Simplex.RemoteControl.Types | |
data RCCtrlPairing Source #
Long-term part of host (mobile) connection to controller (desktop)
Constructors
| RCCtrlPairing | |
Fields
| |
data RCHostKeys Source #
Constructors
| RCHostKeys | |
Fields | |
data RCHostSession Source #
Constructors
| RCHostSession | |
Fields
| |
data HostSessKeys Source #
Constructors
| HostSessKeys | |
Fields | |
data RCCtrlSession Source #
Constructors
| RCCtrlSession | |
Fields
| |
data CtrlSessKeys Source #
Constructors
| CtrlSessKeys | |
Fields | |
data RCHostEncHello Source #
Constructors
| RCHostEncHello | |
Fields
| |
Instances
| Show RCHostEncHello Source # | |
Defined in Simplex.RemoteControl.Types Methods showsPrec :: Int -> RCHostEncHello -> ShowS show :: RCHostEncHello -> String showList :: [RCHostEncHello] -> ShowS | |
| Encoding RCHostEncHello Source # | |
Defined in Simplex.RemoteControl.Types Methods smpEncode :: RCHostEncHello -> ByteString Source # smpDecode :: ByteString -> Either String RCHostEncHello Source # smpP :: Parser RCHostEncHello Source # | |
data RCCtrlEncHello Source #
Constructors
| RCCtrlEncHello | |
Fields
| |
| RCCtrlEncError | |
Fields
| |
Instances
| Show RCCtrlEncHello Source # | |
Defined in Simplex.RemoteControl.Types Methods showsPrec :: Int -> RCCtrlEncHello -> ShowS show :: RCCtrlEncHello -> String showList :: [RCCtrlEncHello] -> ShowS | |
| Encoding RCCtrlEncHello Source # | |
Defined in Simplex.RemoteControl.Types Methods smpEncode :: RCCtrlEncHello -> ByteString Source # smpDecode :: ByteString -> Either String RCCtrlEncHello Source # smpP :: Parser RCCtrlEncHello Source # | |
type SessionCode = ByteString Source #
tlsunique channel binding
type RCStepTMVar a = TMVar (Either RCErrorType a) Source #