Skip to content

emrahcetin43/JACKAL

 
 

Repository files navigation

JACKAL

JACKAL Cloud Storage

JACKAL aims to be the cloud storage provider of the Inter-blockchain communication protocol. JACKAL brings speed, utility, and privacy to decentralized data storage. JACKAL storage is secured by the Secret Network and archived by Filecoin.

This is the contract implimentation of the file system.

TODO

Create privacy key system to prevent others from peaking into files.

Handle uploads of files larger than 1kb while being gas friendly.

Running & Testing

Following deployment on a local testnet from this doc: https://build.scrt.network/dev/quickstart.html#create-initial-smart-contract

cargo update
cargo unit-test //Testing

cargo schema //Generating the schemas to interact with deployed contract

Interacting with the contract

Creating a folder at the root directory:

secretcli tx compute execute $CONTRACT '{"create_folder": {"name": "folder", "path":"/"}}' --from a --keyring-backend test

Creating a file at the root directory:

secretcli tx compute execute $CONTRACT '{"create_file": {"name": "file.txt", "contents": "FILE CONTENTS", "path":"/"}}' --from a --keyring-backend test

Getting the directory listing for the root folder:

secretcli query compute query $CONTRACT '{"get_folder_contents": {"address":"USERS ADDRESS", "path" : "/" }}'

About

JACKAL Storage smart-contract implementation on the Secret Network

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Rust 95.1%
  • Makefile 4.9%