Marmot-TS
    Preparing search index...

    Type Alias EncryptMediaFileResult

    Result of encryptMediaFile.

    type EncryptMediaFileResult = {
        attachment: MediaAttachment;
        encrypted: Uint8Array;
    }
    Index

    Core - Encrypted Media

    Core - Encrypted Media

    attachment: MediaAttachment

    A populated MediaAttachment with ciphertextSha256, plaintextSha256, nonce, mediaType, and filename set, and locators empty. The caller adds one or more MediaLocator entries after uploading encrypted, then serializes the attachment with encodeMediaImetaTag.

    encrypted: Uint8Array

    The encrypted blob. Upload this to a blob store; SHA256(encrypted) (also available as attachment.ciphertextSha256) is the preferred content id.