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

issueToken and registerCommit must only be called by same user account #13

Open
alexeiZamyatin opened this issue Jan 11, 2019 · 0 comments

Comments

@alexeiZamyatin
Copy link
Contributor

Problem: if we do not check that the same user account is used to call issueToken, as registerCommit, the vault or a malicious user can call issueToken for arbitrary users with wrong data, causing it to failr (and collateral being slashed).

Solution: check that msg.sender is the same user that called registerCommit in issueToken

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