Bifröst, the RGB "bridge" Server.
A server to store proofs for client-side validation, as explained in RGB Protocol Specification #03 : Networking.
- Install Rust and Cargo:
curl https://sh.rustup.rs -sSf | sh - Build the project:
cargo build
When the build is completed, the executable will be located at ./target/debug/bifrost.
For convenience, it can be useful to temporarily add the directory to your PATH, like so:
export PATH=$(readlink -f ./target/debug):$PATH
Make sure that you can now run the executable with:
bifrost --version
Bifröst, like its client Kaleidoscope and Bitcoin, has a "home" data directory, which is used to store the database of proofs.
By default, the data directory is $HOME/.rgb-server. This can be overridden
by adding the --datadir <NEWDIR> (or -d <NEWDIR>) to each command.
If the directory does not exist, Bifröst will create it.
cargo run -- --port 80
Use the client Kaleidoscope to interact
with this server. In .rgb/rgb.conf set "default_server": "localhost:3000".
As proofs are uploaded, they will be stored in ~/.rgb-server.