Skip to content

A backend server including key generating server, KGS for zkabe system

Notifications You must be signed in to change notification settings

uog-zkp-lab/zk-abe-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zk-abe-backend

A backend server including Key Generating Server (KGS) for zk-ABE (Zero-Knowledge Attribute-Based Encryption) system.

Overview

This project implements a backend server for a Zero-Knowledge Attribute-Based Encryption system. It includes a Key Generating Server (KGS) that handles the generation of keys required for the encryption and decryption processes.

Features

  • Key Generating Server (KGS) for zk-ABE
  • REST API endpoints for key management
  • Built with Rust for performance and safety
  • Asynchronous handling using Tokio and Warp

Dependencies

  1. Warp: A super-easy, composable, web server framework for warp speeds.
  2. Serde: A framework for serializing and deserializing Rust data structures efficiently and generically.
  3. Tokio: An asynchronous runtime for the Rust programming language.
  4. Rabe: A library for attribute-based encryption schemes.

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/zk-abe-backend.git
    cd zk-abe-backend
    
  2. Install Rust: If you haven't already, install Rust using rustup
    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
    source $HOME/.cargo/env
    
  3. Build:
    cargo build
    
  4. Run the server:
    cargo run
    
  5. Use the following curl command to submit the policy:
curl -X POST http://localhost:3031/submit_policy \
-H "Content-Type: application/json" \
-d @policy_template.json


   
 

About

A backend server including key generating server, KGS for zkabe system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages