manga-download / haruneko

Prototype of HakuNeko based on NW.js + TypeScript
https://haruneko-docs.pages.dev
151 stars 31 forks source link

Allow Uint8Array as GetTypedData parameters #896

Closed MikeZeDev closed 3 days ago

MikeZeDev commented 3 days ago
  1. We get picture as ArrayBuffer, create an Uint8Array from it, decrypt the picture using that Uint8Array.
  2. We return Common.GetTypedData(decrypted_Uint8Array)

I.e : NicoNicoSeiga.

Its stupid to convert decrypted_Uint8Array to an ArrayBuffer AGAIN because GetTypedData will convert it to Uint8Array anyway.

MikeZeDev commented 3 days ago

Superseded by https://github.com/manga-download/haruneko/commit/07be4b49b50d7fb338150695f9676ac04a3d8eac