0.7.0 โข Published 3 years ago
semethid v0.7.0
Table of Contents
- ๐ Install
- ๐ Usage
- ๐ฌ Development
- ๐งพ MIT License
- โ๏ธ Contacts
Install
npm or yarn
You can install the semithid
package with npm:
npm i semethid --save
or with yarn:
yarn add semethid
Usage
# semethid(sign: (message: string) => Promise, groupId: string, nonce?: number): Identity
import semethid from "semethid"
import { Identity } from "semaphore-identity-lib"
import detectEthereumProvider from "@metamask/detect-provider"
import { ethers } from "ethers"
const ethereumProvider = await detectEthereumProvider() as any
const provider = new ethers.providers.Web3Provider(ethereumProvider)
const signer = provider.getSigner()
function sign(message: string) {
return signer.signMessage(message)
}
const identity: Identity = await semethid(sign, "groupId")
*/
Contacts
Developers
- e-mail : me@cedoor.dev
- github : @cedoor
- website : https://cedoor.dev