Skip to content

Commit

Permalink
Improve directory tree structure
Browse files Browse the repository at this point in the history
  • Loading branch information
adamczykm committed May 7, 2024
1 parent c06ea3c commit 20f29bf
Show file tree
Hide file tree
Showing 119 changed files with 41 additions and 44 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The zero-knowledge part is provided via MINA's o1js library.
## Core Components
This repository is organized as a monorepo containing all the system's core components.

### MinAuth Library [:link:](https://github.com/mlabs-haskell/MinAuth/tree/develop/minauth)
### MinAuth Library [:link:](https://github.com/mlabs-haskell/MinAuth/tree/develop/library/minauth)
The library provides all the core types and interfaces that allow for cooperation between the system's elements. It has functions and utilities that help quickly set up compatible authorization plugins. Additionally, it contains tools that may be useful when working with MinAuth, for example, a plugin HTTP server, and a compatible passport.js strategy.

### MinAuth Plugins [:link:](https://github.com/mlabs-haskell/MinAuth/tree/develop/plugins)
Expand Down Expand Up @@ -40,7 +40,7 @@ The client can prove "membership" into the sets represented by merkle trees, by
The plugin then monitors the chain and the contract state (and events) to build a merkle tree of secret commitments.
The prover can prove that

### MinAuth Demo [:link:](https://github.com/mlabs-haskell/MinAuth/tree/develop/minauth-demo)
### MinAuth Demo [:link:](https://github.com/mlabs-haskell/MinAuth/tree/develop/demo-apps)
Part of MinAuth's value proposition is to show a way to connect these innovative technologies in a full-stack web application where all the system components are configured and set up to work together. Consider it an example of how MinAuth can be set up with JWT-based ZKP-backed authentication and a playground to test out plugins or build your own.

## Usage
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file modified bun.lockb
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
35 changes: 35 additions & 0 deletions demo-apps/minauth-demo-client/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
productionBrowserSourceMaps: false,
reactStrictMode: false,

webpack(config) {
config.resolve.alias = {
...config.resolve.alias,
o1js: `${process.env.NODE_MODULES}/o1js`
};
config.experiments = {
...config.experiments,
topLevelAwait: true
};
return config;
},
// To enable o1js for the web, we must set the COOP and COEP headers.
// See here for more information: https://docs.minaprotocol.com/zkapps/how-to-write-a-zkapp-ui#enabling-coop-and-coep-headers
async headers() {
return [{
source: '/(.*)',
headers: [{
key: 'Cross-Origin-Opener-Policy',
value: 'same-origin'
},
{
key: 'Cross-Origin-Embedder-Policy',
value: 'require-corp'
}
]
}];
}
};

module.exports = nextConfig;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion minauth/package.json → library/minauth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build": "tsc -p tsconfig.json",
"lint": "eslint . --ext .ts",
"prettier-format": "prettier --config .prettierrc 'src/**/*.ts' --write",
"test": "echo \"E2E & integration tests are provided in the minauth-demo package.\" && jest --config jest.config.ts"
"test": "echo \"E2E & integration tests are provided in the minauth-demo-server package.\" && jest --config jest.config.ts"
},
"repository": {
"type": "git",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
35 changes: 0 additions & 35 deletions minauth-demo/minauth-demo-client/next.config.js

This file was deleted.

9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@
"name": "minauth-project",
"version": "0.12.0",
"workspaces": [
"minauth",
"minauth-demo/minauth-demo-client",
"minauth-demo/minauth-demo-server",
"plugins/minauth-erc721-timelock-plugin",
"plugins/minauth-merkle-membership-plugin",
"plugins/minauth-simple-preimage-plugin"
"library/minauth",
"demo-apps/*",
"plugins/*"
],
"description": "",
"main": "index.js",
Expand Down

0 comments on commit 20f29bf

Please sign in to comment.