StabilityNexus / StabilityNexus/Chainvoice

Restrict Input Field Sizes to Keep Encrypted Payload On-Chain

Open
#46 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
10
Forks
47
Avg merge
17h 47m
Merged PRs (30d)
4

Description

Issue: Restrict Input Field Sizes to Keep Encrypted Payload On-Chain

Problem

Currently, encrypted invoice data is stored fully on-chain. When users input large amounts of data, the encrypted payload becomes too large, leading to high gas usage and potential transaction failures during gas estimation or execution.

Proposed Solution

Restrict the maximum allowed size of user input fields so that the resulting encrypted payload remains within a safe, predictable size for on-chain storage.

This includes:

  • Defining reasonable character limits for each invoice field
  • Adding frontend validation to enforce these limits
  • Ensuring the encrypted payload size stays within acceptable gas bounds
Scope
  • No change to the current on-chain storage model
  • Focus is strictly on input validation and payload size control
Expected Outcome
  • Reduced gas costs
  • Fewer failed transactions due to payload size
  • More predictable on-chain behavior

Error :

Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Start by tracing the frontend invoice fields through encryption and transaction gas estimation; agree on per-field limits and verify that validation keeps the encrypted payload within the acceptable on-chain bound without changing storage. Done means oversized inputs are rejected and normal invoices can be submitted predictably.

Written by the indexing model from the issue text.

Assessment

Tech stack
blockchain, javascript
Domain
blockchain, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.