Configuration
The set of APIs included in the verification library is comprised of two steps:
- Request APIs allow designing 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 a response to the request.
note
Check the workflow to disambiguate between these two processes.
Both the APIs are available either in Golang or Javascript:
- Golang
- Javascript
go get github.com/iden3/go-iden3-auth/v2
import (
"github.com/iden3/go-circuits/v2"
auth "github.com/iden3/go-iden3-auth/v2"
"github.com/iden3/go-iden3-auth/v2/loaders"
"github.com/iden3/go-iden3-auth/v2/pubsignals"
"github.com/iden3/go-iden3-auth/v2/state"
"github.com/iden3/iden3comm/v2/protocol"
)
npm i @iden3/js-iden3-auth --save
const { auth, resolver, protocol } = require("@iden3/js-iden3-auth");