Marmot-TS
    Preparing search index...

    Function encryptGroupImage

    • Encrypts a group image using ChaCha20-Poly1305 (MIP-01).

      Generates cryptographically random imageKey and imageNonce, encrypts the image, and pre-derives the Blossom upload keypair seed. All output fields should be stored in MarmotGroupData via an MLS proposal/commit.

      Parameters

      • imageData: Uint8Array

        The raw image bytes to encrypt

      Returns EncryptGroupImageResult

      Encryption outputs ready to store in MarmotGroupData