Skip to content
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

[Feature Request] 构想一个 KeyRotationCapability 的使用场景并实现 #32

Open
jolestar opened this issue Jul 6, 2022 · 0 comments

Comments

@jolestar
Copy link
Contributor

jolestar commented Jul 6, 2022

Starcoin 的每个账户都有一个 key_rotation_capability 字段,
并且提供了 Account::extract_key_rotation_capability 方法可以把用户的 KeyRotationCapability 拿出来,
同时也提供了 Account::rotate_authentication_key_with_capability, 可以通过 KeyRotationCapability 重置该 Capbility 原始拥有者的 authentication_key

设计一个应用场景,使用 KeyRotationCapability, 比如通过智能合约帮助用户重置 authentication_key。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant