LNP-BP / LNP-BP/LNPBPs

RGB20: reduce asset name length limit

Open
#74 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

[RGB] question
Dominant language
No language data
Stars
202
Forks
39
PR merge metrics
No merged PRs in 30d

Description

Currently there's an [enforcement at schema level](https://github.com/LNP-BP/rgb-node/blob/68146c578190bb578f2a4bf0f8d3298f94f0959a/src/contracts/fungible/data/schema.rs#L303) of `256` chars on the asset name.

This limit may be too high, so let's consider lowering it a bit.

Contributor guide

No contributing guide indexed for this repository

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

Start with src/contracts/fungible/data/schema.rs at the linked enforcement around line 303, then read the issue discussion for context on the proposed reduction. Determine the intended replacement limit and the validation coverage that should change with it. Done means the schema consistently enforces the agreed lower asset-name limit.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
blockchain
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.