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

separate relayer authority from owner authority #2

Open
KasakiNagato opened this issue Jul 17, 2019 · 1 comment
Open

separate relayer authority from owner authority #2

KasakiNagato opened this issue Jul 17, 2019 · 1 comment
Assignees
Milestone

Comments

@KasakiNagato
Copy link
Member

relayerとなるアカウントをリストで保持し、ownerの権限と分離する。

各関数のアクセス制限は以下のとおり
init(): public
set_parent(parent_supply): onlyOwner
transfer(receiver, value): public
mint(value): onlyOwner
burn(value): onlyOwner
sendToParent(value): public
sendToChild(child, value): public
receiveFromParent(value): onlyRelayer
receiveFromChild(child, value): onlyRelayer

@KasakiNagato KasakiNagato added this to the v0.2 milestone Jul 17, 2019
@wshino wshino self-assigned this Jul 17, 2019
@KasakiNagato
Copy link
Member Author

KasakiNagato commented Jul 22, 2019

  • set_parent時にrelayerListを引数で受け取る
  • receiveFromParent, receiveFromChildを、ownerではなくrelayerが実行可能にする
    Image from iOS

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

3 participants