Skip to content

An experiment to verify a user's crypto address and twitter account are linked without storing any identifiable user data.

Notifications You must be signed in to change notification settings

straightupjac/verify-user

Repository files navigation

Verify User

An experiment to verify a user's crypto address and twitter account are linked without storing any user data using ZK-proofs. No identifiable data will be stored. All hashes are stored publicly on Arweave.

Use at your own risk. Suggestions welcomed :)

Demo here: verify-user-web3.vercel.app

Prerequisites

  • Arweave public and private keys
  • Twitter Developer API access

To install:

yarn add verify-user

or

npm install verify-user

Get started:

const twitterConfig = {
  bearer_token: process.env.BEARER_TOKEN,
}

const adminAddress = process.env.ARWEAVE_ADDRESS;
const arweaveKeyfile = process.env.ARWEAVE_KEY;

const client = new VerifyUserClient(twitterConfig, adminAddress, arweaveKeyfile);

Customize Options

const options = {
  projectName: 'verify_user', // used for arweave document naming
  twitterMessage: 'I am verifying my Twitter' // used for verifying tweets
}

Dependencies

About

An experiment to verify a user's crypto address and twitter account are linked without storing any identifiable user data.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published