Skip to content

Conversation

@shugaoye
Copy link

Summary: Fix TypeScript compile errors caused by passing Uint8Array where ArrayBuffer is expected and mismatched Buffer.from overloads.
Changes:
Convert Uint8Array results of CryptoEngine.random, base64ToBytes, etc. to ArrayBuffer when assigning to ArrayBuffer-typed fields or passing to functions that expect ArrayBuffer (use arrayToBuffer helper).
Use Uint8Array (not ArrayBuffer) when calling Buffer.from to satisfy Node typings.
Files touched: byte-utils.ts, lib/crypto/, lib/format/.
Verification: Ran the project's header-dump script which previously failed; it now prints header info and the TypeScript compile step succeeds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant