mirror of
https://github.com/zkemail/zk-email-verify.git
synced 2026-01-07 20:54:05 -05:00
fix: ensure bodyRemaining is a Uint8Array after padding in generatePartialSHA
This commit is contained in:
@@ -65,7 +65,7 @@ export function generatePartialSHA({
|
||||
throw new Error('Remaining body was not padded correctly with int64s');
|
||||
}
|
||||
|
||||
bodyRemaining = padUint8ArrayWithZeros(bodyRemaining, maxRemainingBodyLength);
|
||||
bodyRemaining = new Uint8Array(padUint8ArrayWithZeros(bodyRemaining, maxRemainingBodyLength));
|
||||
const precomputedSha = partialSha(precomputeText, shaCutoffIndex);
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user