simplexmq-6.5.0.16: SimpleXMQ message broker
Safe HaskellSafe-Inferred
LanguageHaskell2010

Simplex.Messaging.Crypto.ShortLink

Synopsis

Documentation

encodeSignLinkData :: forall c. ConnectionModeI c => KeyPairEd25519 -> VersionRangeSMPA -> ConnectionRequestUri c -> Maybe ByteString -> UserConnLinkData c -> (LinkKey, (ByteString, ByteString)) Source #

newOwnerAuth :: TVar ChaChaDRG -> OwnerId -> PrivateKeyEd25519 -> IO (PrivateKeyEd25519, OwnerAuth) Source #

Generate a new owner key pair and create OwnerAuth signed by the authorizing key. ownerId is application-specific (e.g., MemberId in chat).

encryptLinkData :: TVar ChaChaDRG -> SbKey -> (ByteString, ByteString) -> ExceptT AgentErrorType IO QueueLinkData Source #

encryptUserData :: TVar ChaChaDRG -> SbKey -> ByteString -> ExceptT AgentErrorType IO EncDataBytes Source #