1

Is this a sensible flow for verifying that an Ethereum account is controlled by the same person as a Twitter account?

  1. User logs in to my site with Twitter
  2. I get an auth token back from the Twitter API
  3. I perform a web3js transaction on the client in which I store the hashed auth token in the smart contract in a mapping of addresses to hashed tokens
  4. After the transaction has finished, I send the auth token and contract address to my backend API. The backend queries the blockchain and verifies that the mapping in the smart contract contains the right hashed token for the right address.
  5. Now I know the two are connected, I store the Twitter username and Ethereum address off-chain in a database.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.