@rarimo/auth-zkp-iden3
This package provides a class to work with iden3 zero-knowledge proof. Generates auth proof and return verifiable credentials.

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.3] - 2023-07-04
Added
root
- @rarimo/identity-gen-iden3
package
root
- @rarimo/auth-zkp-iden3
package
root
- @rarimo/zkp-gen-iden3
package
root
- @rarimo/shared-zkp-iden3
package
@rarimo/shared
- export createApi method