Replies: 1 comment 2 replies
-
Could you elaborate on this? Does this simply mean that the contract wants to check that the code hash of another contract is some pre-defined value? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There is a use-case where some contract wants to ensure that some other contract is not an impostor. So far I don't have a complete solution in mind that would be secure in the context of async execution. We could have used code checksum and whitelist the known checksums, but I see flaws of it regarding races in async execution.
Use-case:
Inspired by: https://github.com/galactic3/name_hub
Related to near/nearcore#5738
cc @matklad @evgenykuzyakov @mikedotexe @amgando @nearmax @bowenwang1996
Beta Was this translation helpful? Give feedback.
All reactions