Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Call recoverTransaction and check if the user is registered #72

Open
makevoid opened this issue Jan 1, 2019 · 3 comments
Open

Call recoverTransaction and check if the user is registered #72

makevoid opened this issue Jan 1, 2019 · 3 comments
Assignees
Labels

Comments

@makevoid
Copy link
Contributor

makevoid commented Jan 1, 2019

We need an optional feature (can be enabled but it is disabled by default) of preventing unregistered users to submit transactions - we need registeredUsers, an array of ethereum addresses of registered users that are allowed to transact.

We can use
https://web3js.readthedocs.io/en/1.0/web3-eth-accounts.html#recovertransaction
to check which address sent the signed-transaction and we can check if the address is present in the registeredUsers array

naming: registeredUsers / registeredUserAddresses or another similar name is ok

@makevoid makevoid added the task label Jan 4, 2019
@Alaanzr Alaanzr self-assigned this Jan 4, 2019
@makevoid
Copy link
Contributor Author

makevoid commented Jan 4, 2019

isUserRegistered(ethereumAddress)

@makevoid
Copy link
Contributor Author

makevoid commented Jan 4, 2019

add mantle-demo code to show this

@Alaanzr
Copy link
Contributor

Alaanzr commented Jan 4, 2019

I'll create a separate ticket/PR for the mantle-demo example of this

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

No branches or pull requests

2 participants