Bug report: In the new version I cannot sign and upload images any more with Keychain to hive.blog, there is a new artificial size limit in the new version:
Uploading an image above 100 kb now results in "Request size limit exceeded" returned by Keychain instead of signing the message.
MAX_REQUEST_BYTES got too small in the new Keychain update,
There is now an arbitrary limit what keychain can sign, the limit is too small to sign larger files like images:
const MAX_REQUEST_BYTES = 256 * 1024;
const getRequestPayloadSize = (value: unknown) => {
const byteSize = getJsonByteSize(value);
return {
byteSize,
isValid: byteSize !== null && byteSize <= MAX_REQUEST_BYTES,
};
};
in src/utils/request-payload.utils.ts
On it, thanks!