This directory hosts the Rust-based implementation of the Versioned Storage Service (VSS).
- Install Rust and Cargo (https://www.rust-lang.org/tools/install).
- Install PostgreSQL 15 (https://www.postgresql.org/download/)
git clone https://github.com/lightningdevkit/vss-server.git
cd vss-server/rust
cargo build --release
-
Edit Configuration: Modify
./server/vss-server-config.tomlto set application configuration and environment variables as needed. Add PostgreSQL endpoint configuration. -
Create table in PostgreSQL using
./impls/src/postgres/sql/ -
Start server:
cargo run -- server/vss-server-config.tomlNote: For testing purposes, you can pass
--in-memoryto use in-memory instead of PostgreSQLcargo run -- server/vss-server-config.toml --in-memory -
VSS endpoint should be reachable at
http://localhost:8080/vss.
Refer to ./server/vss-server-config.toml to see available configuration options.
If you encounter any issues or have questions, feel free to open an issue on
the GitHub repository. For further assistance or to discuss the
development of VSS, you can reach out to us in the LDK Discord in the #vss channel.