Skip to content

A Solana based AES-256 encrypted data store contract and wrapper/library

Notifications You must be signed in to change notification settings

Zarathos94/genesys-vault

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Genesys Vault

Library documentation

There are a few things that we need to get up and running. Before we move forward make sure you've a working NodeJS environment set up. We need Rust, Solana, Mocha(a JS testing framework), Anchor and Phantom wallet installed and properly set up. To install rust, run

    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
    source $HOME/.cargo/env
    rustup component add rustfmt

To install Solana, run:

    sh -c "$(curl -sSfL https://release.solana.com/stable/install)"

To install Anchor, we will be using avm (anchor version manager).

To install avm run:

    cargo install --git https://github.com/project-serum/anchor avm --locked --force

After the installation is complete, run:

    avm install latest
    avm use latest

After all of these are done, you can run the following:

    yarn install

And navigate into the projects/contract directory and run:

Open another terminal and run:

    solana-test-validator

Go back to the previous terminal:

    solana airdrop 100 megsPPhXkzwW4YAu2vNRMwnNencVL7UcQ2UMqU5cmur
    cargo clean
    anchor build
    anchor deploy

After the deploy, you need to update the given Program Id as declare_id! in the lib.rs file. Also, you need to update the genesysvault field in the Anchor.toml file.

    anchor test

Navigate into the projects/crypto-vault directory and run:

    yarn install

About

A Solana based AES-256 encrypted data store contract and wrapper/library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published