Add new host function to check the number of keys on the account #5738
-
This is useful when you want to check if the contract account is locked (no keys are there) I have initially considered some API that would allow to read all the keys in the contract context, but it seems quite trouble-some from the encoding point of view. A simple number or even a bool ("are there any keys on the account?") would already help to solve the security challenge that is is front of https://github.com/galactic3/name_hub project, which needs to ensure that nobody else can control the account but the trusted contract deployed to it. There is a more high-level problem, that I described in #5740 cc @matklad @evgenykuzyakov @mikedotexe @amgando @nearmax @bowenwang1996 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Adding |
Beta Was this translation helpful? Give feedback.
-
Duplicate of near/NEPs#79 |
Beta Was this translation helpful? Give feedback.
Duplicate of near/NEPs#79