mirror of
https://github.com/morluto/rea
synced 2026-10-26 06:16:17 -04:00
efbc25fbea
Return the exact static initializer disassembly before Java projection can lose field assignments. Retain byte limits and representation markers, and verify fully folded and mixed initialization through the real CLI/MCP lane. Closes #1846 Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
10 lines
364 B
JavaScript
10 lines
364 B
JavaScript
import { createHash } from "node:crypto";
|
|
import { createReadStream } from "node:fs";
|
|
|
|
/** Verify artifact identity without depending on private runtime snapshot helpers. */
|
|
export const hashAndroidFile = async (path) => {
|
|
const hash = createHash("sha256");
|
|
for await (const bytes of createReadStream(path)) hash.update(bytes);
|
|
return hash.digest("hex");
|
|
};
|