Skip to content

Commit 2e7b99c

Browse files
author
adamczykm
committed
Split minauth into packages, bump o1js, fix erros
Move zkproof verification into plugins. And more.
1 parent 6e3bbdb commit 2e7b99c

File tree

89 files changed

+20036
-19176
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+20036
-19176
lines changed

.eslintignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
node_modules
2-
dist
1+
minauth-demo/minauth-demo-server/plugins
2+
**/dist
3+
**/build
4+
**/node_modules
5+
**/*config.js

.gitignore

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ pids
1919
# Directory for instrumented libs generated by jscoverage/JSCover
2020
lib-cov
2121

22+
# direnv & .envrc
23+
.direnv
24+
.envrc
25+
2226
# Coverage directory used by tools like istanbul
2327
coverage
2428
*.lcov
@@ -36,11 +40,12 @@ bower_components
3640
.lock-wscript
3741

3842
# Compiled binary addons (https://nodejs.org/api/addons.html)
39-
build/Release
43+
**/build/Release
44+
**/build
4045

4146
# Dependency directories
42-
node_modules/
43-
jspm_packages/
47+
**/node_modules/
48+
**/jspm_packages/
4449

4550
# Snowpack dependency directory (https://snowpack.dev/)
4651
web_modules/
@@ -89,7 +94,7 @@ out
8994

9095
# Nuxt.js build / generate output
9196
.nuxt
92-
dist
97+
/**/dist
9398

9499
# Gatsby files
95100
.cache/

README.md

Lines changed: 1 addition & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1 @@
1-
# MinAuth
2-
3-
Rapid development of POC of MinAuth - MinAuth is a library and a set of tools for providing JWT-based authentication protocol that uses SnarkyJS zero-knowledge proofs as the basis of the authentication. It uses plugins to prove statements about external data such as on-chain data or 3rd-party data.
4-
5-
### Current status
6-
7-
The current code implements minimal authentication flow that recreates the usual passport authentication, but using snarkyjs ZKPs.
8-
9-
### Repository Structure
10-
11-
Currently the source code of the repository is structure like this:
12-
13-
```
14-
.
15-
├── headlessClient
16-
├── library
17-
│   ├── client
18-
│   ├── common
19-
│   ├── plugin
20-
│   ├── server
21-
│   └── tools
22-
├── plugins
23-
│   └── simplePreimage
24-
└── someServer
25-
```
26-
27-
- headlessClient
28-
29-
This contains a hypothetical headless client using the MinAuth-enriched `someServer`. The purpose is to allow for quick tests and prototyping of the rest of the repository.
30-
31-
- library
32-
33-
This directory contains the code of the core library. It is divided by modules usage site. So for example in `library/plugin` you'll find stuff to build your own MinAuth plugins.
34-
35-
- plugins
36-
37-
This directory contains the official MinAuth plugins.
38-
39-
- someServer
40-
41-
An example of how you would use MinAuth on your server.
1+
README is being updated after spliting MinAuth POC into packages.

flake.lock

Lines changed: 0 additions & 205 deletions
This file was deleted.

0 commit comments

Comments
 (0)