Marmot-TS
    Preparing search index...

    Function deriveGroupImageBlossomAuthKeypair

    • Derives the Nostr keypair used to authenticate Blossom upload/delete requests for a group image (MIP-01).

      Derivation:

      upload_secret = HKDF-Expand(imageKey, "mip01-blossom-upload-v1", 32)
      upload_keypair = secp256k1_keypair_from_secret(upload_secret)

      This is the same value stored in MarmotGroupData.imageUploadKey. The function exists so callers can re-derive the keypair from a previously stored imageKey at any time — for example, to delete an old image blob from Blossom after updating the group avatar.

      Parameters

      • imageKey: Uint8Array

        MarmotGroupData.imageKey (32 bytes)

      Returns GroupImageBlossomAuthKeypair

      The Blossom upload/delete keypair