Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Erebos.Pairing
Documentation
data PairingService a Source #
Constructors
PairingRequest (Stored (Signed IdentityData)) (Stored (Signed IdentityData)) RefDigest | |
PairingResponse Bytes | |
PairingRequestNonce Bytes | |
PairingAccept a | |
PairingReject |
Instances
data PairingState a Source #
data PairingAttributes a Source #
Constructors
PairingAttributes | |
Fields
|
class (Typeable a, Storable a) => PairingResult a where Source #
Methods
pairingServiceID :: proxy a -> ServiceID Source #
pairingVerifyResult :: a -> ServiceHandler (PairingService a) (Maybe (PairingVerifiedResult a)) Source #
pairingFinalizeRequest :: PairingVerifiedResult a -> ServiceHandler (PairingService a) () Source #
pairingFinalizeResponse :: ServiceHandler (PairingService a) a Source #
defaultPairingAttributes :: proxy (PairingService a) -> PairingAttributes a Source #
data PairingFailureReason a Source #
Constructors
PairingUserRejected | |
PairingUnexpectedMessage (PairingState a) (PairingService a) | |
PairingFailedOther String |
pairingRequest :: forall a m proxy. (PairingResult a, MonadIO m, MonadError String m) => proxy a -> Peer -> m () Source #
pairingAccept :: forall a m proxy. (PairingResult a, MonadIO m, MonadError String m) => proxy a -> Peer -> m () Source #
pairingReject :: forall a m proxy. (PairingResult a, MonadIO m, MonadError String m) => proxy a -> Peer -> m () Source #