WORK IN PROGRESS --- BARELY FUNCTIONAL AND MISSING MUCH TO BE DONE
$ curl https://sh.rustup.rs -sSf | sh
$ source $HOME/.cargo/env
$ rustup component add rustfmt
When building the master branch, please make sure you are using the latest stable rust version by running:
$ rustup update
Note that if this is not the latest rust version on your machine, cargo commands may require an override in order to use the correct version.
On Linux systems you may need to install libssl-dev, pkg-config, zlib1g-dev, etc. On Ubuntu:
$ sudo apt-get update
$ sudo apt-get install libssl-dev libudev-dev pkg-config zlib1g-dev llvm clang make
Finally, install the latest Solana CLI Suite
Using https
$ git clone https://github.com/hashblock/solana-did-method
Using ssh
$ git clone git@github.com:hashblock/solana-did-method.git
First the Solana program
$ cd solana-did-method/program
$ cargo build-bpf
$ cd ..
Then the command line wallet
$ cargo build
Run the non-bpf test suite:
This will start a local solana validator node (solana-test-validator
)and run through tests in src/main.rs
$ cargo test -- --test-threads=1 --nocapture
WIP