Architecture
Some contracts can be classified into the following categories:
Guard
- A middleware contract that checks if the request is authenticated.GuardRouter
- A contract that routes the request to the appropriate guard contract.
The following diagram shows the architecture of the contracts and how they interact with the MPC:
The architecture is composed of the following contracts:
- FastAuth - The main contract. It acts as the gateway to perform signatures via MPC. Accessible to the end-user.
- JwtGuardRouter - A contract that routes JWT verification requests to the appropriate guard contract.
- Auth0Guard - A guard contract that verifies a JWT token forged through Auth0.