Skip to content

Commit

Permalink
Merge pull request #6 from zkemail/feat/refactor
Browse files Browse the repository at this point in the history
refactor: improve package structure with modular circuits
  • Loading branch information
shreyas-londhe authored Dec 19, 2024
2 parents b4eb4c2 + 5ebcb76 commit 16454e7
Show file tree
Hide file tree
Showing 54 changed files with 18,320 additions and 11,444 deletions.
10 changes: 10 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"semi": true,
"tabWidth": 2,
"printWidth": 120,
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": true,
"arrowParens": "always",
"endOfLine": "lf"
}
16 changes: 6 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# ZK-JWT
# jwt-tx-builder

ZK-JWT is an application that allows for anonymous verification of JWT signatures while masking specific claims. It enables verification of JWTs from specific issuers or subsets of domains, as well as verification based on specific claims in the payload. Our core SDK comes with libraries to assist with circuit generation and utility templates for building zero-knowledge JWT applications.
jwt-tx-builder is an application that allows for anonymous verification of JWT signatures while masking specific claims. It enables verification of JWTs from specific issuers or subsets of domains, as well as verification based on specific claims in the payload. Our core SDK comes with libraries to assist with circuit generation and utility templates for building zero-knowledge JWT applications.

## Packages Overview

ZK-JWT consists of two core packages:
jwt-tx-builder consists of two core packages:

### @zk-jwt/circuits
### @zk-email/jwt-tx-builder-circuits

Zero-knowledge circuits for JWT verification, including RSA signature validation and anonymous domain verification. [Read more](/packages/circuits/README.md).

### @zk-jwt/helpers
### @zk-email/jwt-tx-builder-helpers

TypeScript utilities for generating circuit inputs, handling JWTs, and managing public keys. [Read more](/packages/helpers/README.md).

### @zk-jwt/contracts
### @zk-email/jwt-tx-builder-contracts

Solidity contracts for on-chain verification of ZK proofs. [Read more](/packages/contracts/README.md).

Expand All @@ -24,10 +24,6 @@ We've built a demo application that uses ZK-JWT to verify Google Sign-In JWTs.

Try it here: [jwt.zk.email](https://jwt.zk.email)

## Contributing

We welcome contributions! For each merged PR addressing an [open issue](link-to-issues), we offer a $50 reward. See our [Contributing Guide](Contributing.md) for details.

## Audits

This project has not yet been audited. Not intended for production use.
Expand Down
48 changes: 22 additions & 26 deletions frontend/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,39 +1,35 @@
import type { Metadata } from "next";
import { ChakraProvider } from "@chakra-ui/react";
import localFont from "next/font/local";
import "./globals.css";
import type { Metadata } from 'next';
import { ChakraProvider } from '@chakra-ui/react';
import localFont from 'next/font/local';
import './globals.css';

const geistSans = localFont({
src: "./fonts/GeistVF.woff",
variable: "--font-geist-sans",
weight: "100 900",
src: './fonts/GeistVF.woff',
variable: '--font-geist-sans',
weight: '100 900',
});
const geistMono = localFont({
src: "./fonts/GeistMonoVF.woff",
variable: "--font-geist-mono",
weight: "100 900",
src: './fonts/GeistMonoVF.woff',
variable: '--font-geist-mono',
weight: '100 900',
});

export const metadata: Metadata = {
title: "JWT-Wallet",
description: "A simple JWT wallet application",
title: 'JWT-Wallet',
description: 'A simple JWT wallet application',
};

export default function RootLayout({
children,
children,
}: Readonly<{
children: React.ReactNode;
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body className={`${geistSans.variable} ${geistMono.variable}`}>
<ChakraProvider>{children}</ChakraProvider>
<script
src="https://accounts.google.com/gsi/client"
async
defer
></script>
</body>
</html>
);
return (
<html lang="en">
<body className={`${geistSans.variable} ${geistMono.variable}`}>
<ChakraProvider>{children}</ChakraProvider>
<script src="https://accounts.google.com/gsi/client" async defer></script>
</body>
</html>
);
}
Loading

0 comments on commit 16454e7

Please sign in to comment.