Marmot-TS
    Preparing search index...

    Type Alias EncryptGroupImageResult

    Result of encryptGroupImage.

    All byte fields are ready to store in MarmotGroupData and/or upload to a Blossom server. imageKey and imageUploadKey are secret — treat them accordingly.

    type EncryptGroupImageResult = {
        encrypted: Uint8Array;
        imageHash: Uint8Array;
        imageKey: Uint8Array;
        imageNonce: Uint8Array;
        imageUploadKey: Uint8Array;
    }
    Index

    Core - Group Image

    encrypted: Uint8Array

    The encrypted image bytes. Upload this blob to Blossom.

    imageHash: Uint8Array

    SHA-256 of encrypted. Store in MarmotGroupData.imageHash.

    imageKey: Uint8Array

    32-byte ChaCha20-Poly1305 encryption key. Store in MarmotGroupData.imageKey.

    imageNonce: Uint8Array

    12-byte ChaCha20-Poly1305 nonce. Store in MarmotGroupData.imageNonce.

    imageUploadKey: Uint8Array

    Pre-derived Blossom upload keypair seed (32 bytes). Store in MarmotGroupData.imageUploadKey.

    Equal to HKDF-Expand(imageKey, "mip01-blossom-upload-v1", 32). Can also be recomputed at any time via deriveGroupImageBlossomAuthKeypair.