Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data AuthenticatedContent = AuthenticatedContent {}
- data TaggedSender
- authContentRef :: CipherSuiteTag -> AuthenticatedContent -> ProposalRef
- publicMessageRef :: CipherSuiteTag -> PublicMessage -> ProposalRef
- mkSignedPublicMessage :: forall ss m. (IsSignatureScheme ss, MonadRandom m) => KeyPair ss -> GroupId -> Epoch -> TaggedSender -> FramedContentData -> m PublicMessage
Documentation
data AuthenticatedContent Source #
Needed to compute proposal refs. https://messaginglayersecurity.rocks/mls-protocol/draft-ietf-mls-protocol-20/draft-ietf-mls-protocol.html#section-6-7
Instances
Show AuthenticatedContent Source # | |
Defined in Wire.API.MLS.AuthenticatedContent showsPrec :: Int -> AuthenticatedContent -> ShowS # show :: AuthenticatedContent -> String # showList :: [AuthenticatedContent] -> ShowS # | |
Eq AuthenticatedContent Source # | |
Defined in Wire.API.MLS.AuthenticatedContent (==) :: AuthenticatedContent -> AuthenticatedContent -> Bool # (/=) :: AuthenticatedContent -> AuthenticatedContent -> Bool # | |
SerialiseMLS AuthenticatedContent Source # | |
Defined in Wire.API.MLS.AuthenticatedContent |
data TaggedSender Source #
Sender, plus with a membership tag in the case of a member sender.
authContentRef :: CipherSuiteTag -> AuthenticatedContent -> ProposalRef Source #
Compute the proposal ref given a ciphersuite and the raw proposal data.
mkSignedPublicMessage :: forall ss m. (IsSignatureScheme ss, MonadRandom m) => KeyPair ss -> GroupId -> Epoch -> TaggedSender -> FramedContentData -> m PublicMessage Source #
Craft a message with the backend itself as a sender. Return the message and its ref.