Easily create and verify decentralized identities using Ethereum wallets. This package allows users to connect their Ethereum wallet, generate an API key based on their address, and create a decentralized identity stored on IPFS.
- Wallet connectivity
- API key generation
- UI for identity creation
- Data pinning on IPFS
- Smart contract interactions for storing and verifying identities
npm install decentralized-identity-package
const { connectWallet } = require('decentralized-identity-package');
async function initiate() {
const apiKey = await connectWallet();
console.log(apiKey);
}
const { createIdentity } = require('decentralized-identity-package');
const userData = {
name: "John Doe",
jobRole: "Developer",
experience: "5 years",
stack: "JavaScript, React, Ethereum"
};
async function initiateIdentity() {
const ipfsPath = await createIdentity(userData);
console.log(ipfsPath);
}
const { verifyIdentity } = require('decentralized-identity-package');
async function checkIdentity(address) {
const identityData = await verifyIdentity(address);
console.log(identityData);
}
- Web3-enabled browser or provider
- IPFS (if self-hosting)
- Ethereum smart contract setup for storing user identities
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.