@welshare/sdk
    Preparing search index...

    Function fetchBinaryData

    • Download an encrypted file by its document ID from Nillion. The file is not decrypted automatically. Can be used for files that carry 3rd party decryption information

      Parameters

      Returns Promise<
          {
              binaryFile: {
                  controller_did: string;
                  encryption_key: string;
                  file_name: string;
                  file_size: number;
                  file_type: string;
                  reference: string;
                  url: string;
              } & NillionNucDataBase;
              data: Promise<ArrayBuffer>;
          },
      >