Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,42 @@
# MinAuth
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.


### Current status

The current code implements minimal authentication flow that recreates the usual passport authentication, but using snarkyjs ZKPs.


### Repository Structure

Currently the source code of the repository is structure like this:

```
.
├── headlessClient
├── library
│   ├── client
│   ├── common
│   ├── plugin
│   ├── server
│   └── tools
├── plugins
│   └── simplePreimage
└── someServer
```

- headlessClient

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.

- library

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.

- plugins

This directory contains the official MinAuth plugins.

- someServer

An example of how you would use MinAuth on your server.
64 changes: 64 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
description = "MinAuth";

inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};

outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
];
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ];
perSystem = { config, self', inputs', pkgs, system, ... }: {
devShells.default = pkgs.mkShell {
packages = with pkgs; [
nodejs
nodePackages.typescript
nodePackages.typescript-language-server
];
};
};
flake = {
};
};
}
Loading