-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reserve some TransactionAttributeTypes for experimental/private usage #1904
Comments
That would imply VarBytes encoding for reserved attribute's data, probably. |
There is a prototype now implemented in nspcc-dev/neo-go#1496, 0xe0-0xff range is used for that. |
We can add |
Attributes are not exposed to SmartContracts, isn't it? |
No, they aren't. https://github.com/neo-project/neo-devpack-dotnet/blob/master/src/Neo.SmartContract.Framework/Services/Transaction.cs |
What's the sense if is not possible to use in a smart contract |
Do you agree on this solution? @roman-khimov |
That essentially means using one attribute type for all potential extensions which requires further demultiplexing in practice. Could be done, but a range of attributes seems to be a bit more natural. |
Summary or problem description
Many protocol-related experiments and extensions around transactions can start as simple attributes. Some private networks may also want to have extensions based on attributes for their internal usage. We have
TransactionAttributeType
and associated logic that regulates attributes, but at the moment it's not really encouraging these experiments as any type code might get used by the official node and decoding unknown attribute will always fail.Do you have any solution you want to propose?
That costs nothing and I think we can do it easily.
This is a bit more invasive and dangerous (think of two nodes using the same type but with a different meaning for it), but for testing purposes maybe it's worth it.
Neo Version
Where in the software does this update applies to?
The text was updated successfully, but these errors were encountered: