Configuration
The set of APIs included in the verification library can be split into two steps:
- Request APIs allow to design the request to be presented to the user in order to authenticate.
- Verification APIs allow verifying the proof sent by the user. The proof is generated as response to the request.
Check the workflow to disambiguate between these two processes
Both the APIs are available either in Golang or Javascript:
go get github.com/iden3/go-iden3-auth
import (
"github.com/iden3/go-circuits"
auth "github.com/iden3/go-iden3-auth"
"github.com/iden3/go-iden3-auth/loaders"
"github.com/iden3/go-iden3-auth/pubsignals"
"github.com/iden3/go-iden3-auth/state"
"github.com/iden3/iden3comm/protocol"
)
npm i @iden3/js-iden3-auth --save
const {auth, resolver, protocol, loaders, circuits} = require('@iden3/js-iden3-auth')