RFC on-chain storage #2668
gregLibert
started this conversation in
Ideas
Replies: 3 comments 7 replies
-
I don't understand what "Domain name resolution" is used for |
Beta Was this translation helpful? Give feedback.
4 replies
-
One thing missing is the capability to store bytecode. See: #2642 |
Beta Was this translation helpful? Give feedback.
2 replies
-
I try to clarify the scope of this RFC by adding:
@damip is it more intelligible? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
On-chain storage
Normalization of binary storage in the Massa's datastore.
Introduction
Context
Storing data in the ledger for a given address is one of the functionalities proposed by the Massa blockchain.
Currently, the Massa's API exposes a key/value set by address where:
Motivation
Sharing the same convention to interact with stored data will make content rendering easier and reduce heterogeneity.
Scope
This RFC will only describe the storage envelope, not the content itself.
Storage conventions
Key
The following keys are reserved values:
Note: this list will be extended as the use cases evolve.
Value
Each value is structured as follows:
This field (one byte) specifies which version of the storage convention is used to store the data. At the moment, 0x00 shall be used.
Binary data (byte array). For more information, please refer to the RFC describing the format in question.
Note: When possible the TLV protocol, with the Type field encoded in 2 bytes and the Length one encoded in 3 bytes, should be used.
Beta Was this translation helpful? Give feedback.
All reactions