Markdown files up to 96 KiB show whether their ENS signature holds #7
Reference in New Issue
Block a user
Delete Branch "larger-signed-files"
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?
A signed Markdown file up to 96 KiB now gets its verdict when read, where anything over 40 KiB said "Not checked: file too large". The library now hashes a body without copying it (https://github.com/capsulizers/md-ens-signature/pull/32), recovers a signer with one multi-scalar multiplication instead of two (https://github.com/capsulizers/md-ens-signature/pull/33), and takes a digest already computed (https://github.com/capsulizers/md-ens-signature/pull/34), so a first check hashes once. A check costs about 4.9 million instructions plus 86 a byte, down from 8.7 million plus 188; a save 5.6 million plus 85, down from 98. The save limit stays 96 KiB.
Measured through Memona's plugin host with fuel metering, against a local WebDAV server and Sepolia: at 96 KiB a check takes 13.3 million (14.4 with CRLF) and a save 13.9 million (15.1 with CRLF) of the 20 million. The app itself was not captured; the images show the plugin's output through the host.
🤖 Generated with Claude Code
@bot please review the head; it bumps md-ens-signature to a build that hashes a body once without copying it and recovers a signer with one multi-scalar multiplication, then raises the checked size from 40 KiB to 96 KiB on measured fuel. Check that the verdict cache still keys on digest, signer and signature, and that the new limits keep a margin under the 20 million per call.
✅ Approved
Cache identity and 96 KiB bounds meet the requested contract.
Strengths
Verification and limit
(body digest, signer, signature).Issues
None
Recommendations
None
Assessment
Ready to merge
Checks
Passed
cargo test --locked --all-targets— 24 passed.cargo clippy --locked --all-targets -- -D warningscargo fmt --all -- --checkDeclined to judge
None