Replies: 1 comment
-
I identified also other problems with entity hashes design a few months ago, but without any response. casper-network/casper-node#4511 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Based on the meeting recording I asked AI to summarized the problem identified by @davidatwhiletrue.
AI Prompt:
AI Response:
Key-based interface problem
At the end of the meeting, David and Maciej raised concerns about the potential fragmentation and compatibility issues arising from the change in key types used in smart contracts. Here are the key points of their discussion:
Problem Description
The new version of the smart contracts (CEP18) uses an "entity address key" instead of the traditional "account hash" or "contract hash" keys.
This change means that the method signatures for interacting with these contracts will differ between the old and new versions.
In the network, there will be contracts that use the old key types (account hash, contract hash) and new contracts that use the entity address key.
This creates a situation where different contracts, even if they follow the same standard (e.g., CEP18), will require different types of keys for the same operations (e.g., transferring tokens).
Users and wallet applications will need to handle both types of keys, which can be confusing and error-prone.
For example, a wallet will need to know whether a contract has been migrated to the new version to prepare the correct type of transaction.
Contracts that are not upgradable and remain on the old key system will not be able to interact seamlessly with new contracts that use the entity address key.
This could lead to situations where certain functionalities or integrations break, requiring significant changes to maintain compatibility.
Specific Concerns Raised
David Hernando:
Maciej Zieliński:
Beta Was this translation helpful? Give feedback.
All reactions