Marmot-TS
    Preparing search index...

    Function readWelcomeGroupInfo

    • Decrypts the GroupInfo from a Welcome message using the provided key package, without performing a full group join.

      This is lighter than joinGroup — it stops after decrypting the group secrets and group info, giving access to groupContext (group ID, epoch, extensions) and GroupInfo-level extensions (ratchet tree, external pub).

      Parameters

      • __namedParameters: {
            ciphersuiteImpl: CiphersuiteImpl;
            keyPackage: {
                privatePackage: PrivateKeyPackage;
                publicPackage: KeyPackage;
            };
            welcome: Rumor
            | Welcome;
        }
        • ciphersuiteImpl: CiphersuiteImpl

          The ciphersuite implementation

        • keyPackage: { privatePackage: PrivateKeyPackage; publicPackage: KeyPackage }

          The full key package (public + private) used to receive the invite

        • welcome: Rumor | Welcome

          The MLS Welcome message (or a kind 444 Rumor)

      Returns Promise<GroupInfo>

      The decrypted GroupInfo

      Error if the key package does not match any secret in the welcome