Introduce compact keys for JSON metadata fields to reduce size of JSON metadata object#390
Conversation
7be66d0 to
4e2200f
Compare
|
Hey @WietseWind - this PR reflects the key proposals from our earlier discussions, and we’re aligned with the direction. We propose to use the short-key format only, primarily for simplicity and to be sensible about on-ledger storage, given that all of this data is immutable once written. We also agree that we should avoid maintaining multiple standards over time, so let’s aim to settle on this one. We’ll keep this PR open for two weeks for comments, and plan to merge afterward unless there are major objections. Regarding encoding, we’d prefer to keep it as JSON. As you mentioned, it’s the simplest and most approachable option for the average developer. For context, we’re also working on the XRPL Meta implementation, which will follow this short-key structure. |
|
Wonderful, thanks. Agree on all fronts/ |
4e2200f to
10a2dac
Compare
97ad3c3 to
55233fe
Compare
55233fe to
d875117
Compare
High Level Changes
HTTPS://Why
This PR is meant to address WietseWind's comment in this discussion about reducing the size of JSON metadata object. With the proposed change, we can achieve a ~27.6% size reduction (from ~626 bytes to ~453 bytes) for the JSON Metadata example provided in XLS-89 Multi-Purpose Token Metadata Schema.
Before
JSON Metadata example (626 bytes)
After
JSON Metadata example (453 bytes)