Skip to content

secretarium/klave-secure-rooms

Repository files navigation

Klave - Secure Data Rooms

The secure data room app leverages on Klave's confidential computing to allow you to encrypt files and collaborate with selected users.

Wasm AssemblyScript

Description

This contract implements an API that provides the following functions:

  • Set a super admin for the secure data room
  • Super admin creates a single data room
  • Super admin approves participants upon request to become admin or viewers of the data room
  • Super admin approves the storage server upon request to become an admin of the data room
  • Creation of signature / verification pair of keys for both klave and storage server
  • Ability to store file definition in klave to provide a secure access only to participants of the data room

Build your back-end locally

Fork the repo https://github.com/secretarium/klave-secure-rooms and clone it on your machine. You can build your template into wasm locally, allowing you to validate the hash of the application deployed on Klave.

Note: You should have node and yarn installed to be able to build locally.

yarn install
yarn build

Deploy your own back-end

You can deploy the back-end of the secure data room to Klave with one click: Deploy on Klave

Retrieve the address of your honest application after deployment on klave website as you will target it within the UI and the storage server.

Build UI and run it locally

Change the .env file in apps/ui with the following

VITE_APP_SECRETARIUM_GATEWAYS="SDR#Secure data room#wss://klave-prod.secretarium.org"

VITE_APP_KLAVE_CONTRACT="address of your deployed klave contract"

Run npx nx build ui to build the application. The build artifacts are stored in the output directory (e.g. dist/ or build/), ready to be deployed.

Run npx nx build ui to deploy the UI locally.

Build Storage server and run it locally

Change the .env file in apps/uploader with the following

VITE_APP_SECRETARIUM_GATEWAYS="SDR#Secure data room#wss://klave-prod.secretarium.org"

VITE_APP_KLAVE_CONTRACT="address of your deployed klave contract"

Run npx nx build uploader to build the application. The build artifacts are stored in the output directory (e.g. dist/ or build/), ready to be deployed.

Run npx nx server uploader to run the storage server locally.

Authors

This library is created by Klave and Secretarium team members, with contributions from:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •