@rarimo/auth-zkp-iden3
Tools that authenticate a zero-knowledge proof and provide verifiable credentials from it.

Getting Started
Installing
yarn add @rarimo/auth-zkp-iden3
Usage
import { AuthZkp } from '@rarimo/auth-zkp-iden3'
import { type Identity } from '@rarimo/identity-gen-iden3'
type QueryVariableName = { isNatural: number }
const getVerifiableCredentials = async (identity: Identity) => {
AuthZkp.setConfig({
RPC_URL: 'https://matic-mumbai.chainstacklabs.com',
STATE_V2_ADDRESS: '0x134B1BE34911E39A8397ec6289782989729807a4',
ISSUER_API_URL: 'http://127.0.0.1:8000/',
})
const authProof = new AuthZkp<QueryVariableName>(identity)
const verifiableCredentials = await authProof.getVerifiableCredentials()
}
Known Issues
Read here
License
This project is licensed under the MIT License - see the LICENSE.md file for details
[2.0.0-rc.34] - 2024-03-05
Added
@rarimo/client
- WorldId message type