Error: invalid plaintext size: must be between 1 and 65535 bytes on /verify
page
#260
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
How to reproduce
Currently, no stable steps are known, it happens intermittently.
The error happens here in the
nostr-tools
library:a8a805fb71/nip44.ts (L42)
In our app it's being called from: https://git.nostrdev.com/sigit/sigit.io/src/branch/staging/src/pages/verify/index.tsx#L344
After investigating further today, I am fairly certain that issue happens after timestamps get verified. The size of the timestamps array is couple of thousands of bytes but once they are verified each timestamp gets a signed event attributed to it and each signed event as a string is about 15k bytes which adds up quickly with multiple signers.
Behavior that I have noticed while testing was that only a couple of initial timestamps would get verified and update the sigit meta before we hit the size cap.
The issue is also made complicated since the actual timestamp verification is dependent on the open timestamps and we have to wait for verification.
The obvious fix for this is to stop signing the meta.json inside nostr events
Instead we should encrypt and load it to blossom, and send the link instead
This fixes all of our size signing issues (including markSignatures)