Sismo Connect Server: Verify Offchain
Verify proofs from your users
The Sismo Connect Server is a back-end package built on top of the Hydra-S2 Verifier to easily verify proofs from your users offchain.
The Sismo Connect Server is
Installation
Install Sismo Connect server package in your backend with npm
or yarn
:
Make sure to have at least v18.15.0 as Node version. You can encounter issues with ethers dependencies if not.
Usage
Configuration
The first step for integrating Sismo Connect in your back end is to create a sismoConnectServerConfig
. This config will require an appId
and can be customized with optional fields. You can go to the Sismo Factory to register an appId (here is a tutorial).
This config
is then used to create a SismoConnect
instance that will be used to verify proofs.
Verify proofs from your users
Proofs need to be sent from your front end to your back end with a SismoConnectResponse
. The verify
function takes the SismoConnectResponse
as inputs but also requests to verify that proofs held in the response are cryptographically valid with respect to these requests.
Last updated