-
Notifications
You must be signed in to change notification settings - Fork 282
Create 0467-normalized-message-hash.md #467
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
base: master
Are you sure you want to change the base?
Conversation
LGTM |
It is pretty cool idea. 🧐👍 I'm wondering that is there any advantage of norm message hash than the For the For the dapp developers, they can pre-determine the message hash of external-in messages and then focus on tracking the first appeared transaction hash of those external-in messages (i.e., If the external-in message is under bad format (e.g., invalid boc encoding, wrong action that cannot lead to success account transition, ...) TON nodes or lite-servers will directly reject the message, response error message, and leave zero on-chain log. However, if the external-in message can "produce" at least one TON transaction, we have got It seems that To sum up, I think maybe we could simply relax the current definition of norm message hash into just be the same thing as external-in message hash. Although it contains more items to calculate the hash value than just Hash( src |
@a2468834 Issue with trace-id (which is essentially the id of first transaction in trace) is that before message reached the blockchain we do not know the trace-id, for now, giving latencies of delivery and indexing it may require up to 20 seconds that is detrimental for UX. It is also not convenient for services : for instance some service made withdrawal and want to both insert it into database and give user link to explorer. Since explorers (tonscan and tonapi) now can show pending transactions immediately (with latency as low as 200ms) after external reached explorer (not commited to blockchain, but merely got to indexers) it is expedient to provide the way how user can get identifier for such pending events. |
Okay, I see. Waiting for the first transaction hash might be a pain point for some of services. However, I'm not quite getting the point about why do you choose the current definition of norm message hash? I think it will not be significantly slower if we calculate cell hash of the "full" content of external message. Besides, both choices have the same bit length (i.e., 256 bits), so using hash of full external message would consume the same bits as the norm message hash. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ARD
ARD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AR
No description provided.