Contributions of all kinds are welcome — bug reports, documentation improvements, and tests.
The workspace is organised into focused crates. Keep changes scoped to the appropriate crate and discuss cross-crate changes in an issue first.
policy: Portablebitcoin-policy-v1registry and verified context.core: Policy execution adapter and shared Bitcoin/Elements primitives.service: Axum HTTP service exposing separate Bitcoin/Liquid policy APIs and the version endpoint.cli: Primarypolicyworkflow and key generation.
If this is just a bug report or a feature request, please open an issue first so it can be discussed. PRs for bug fixes are also welcome and can be discussed directly in the PR. However, for larger changes, it is better to open an issue first to discuss the proposed change before implementing it.
- Fork the repository and create a branch from
development. - Make your changes, including tests where applicable.
- Ensure CI checks pass.
- Open a PR against
developmentdescribing what was changed and why. - Keep PRs focused, one logical change per PR. Split large changes into sequential PRs if needed.
- Run
cargo fmtbefore every commit. - The project targets zero
clippywarnings with-D warnings. Fix all warnings introduced by your changes. - Use
thiserrorfor library errors. Avoidunwrap()outside of tests and examples. - Keep the public API surface minimal. Only
pubwhat downstream crates genuinely need, and add///doc comments to all new public items. - Adding a new dependency requires justification. Prefer
[workspace.dependencies]entries and avoid floating version requirements. - Add unit tests under a
#[cfg(test)]module in the same file.
First follow the service's key-provisioning instructions. The repository no longer supplies an active configuration or a usable signing key.
cd service
cargo run --quiet -- startThe service reads config.toml from the current directory by default. You can point it at a custom file with --config:
cargo run --quiet -- start --config path/to/your/config.tomlTo exercise the policy CLI against a matching Testnet4 service, follow the demo's artifact requirements:
./cli/scripts/demo_btc.sh --help
# With reviewed policy artifacts configured:
./cli/scripts/demo_btc.sh reviewThe multi-stage Dockerfile builds the service binary. To build and run:
docker build -t simplicity-unchained-service .
docker run --rm -p 30431:30431 \
--mount type=bind,src=/absolute/path/to/service-config.toml,dst=/app/config.toml,readonly \
simplicity-unchained-serviceProvision the host configuration outside the Docker build context with a unique
signing key; see the service Docker instructions.
The container runs as a non-root user (uid=1000). Ensure the private mounted
configuration is readable by that user. An unconfigured container exits unsuccessfully.
Open a GitHub issue including:
- What happened vs. what you expected.
- A minimal command sequence or code snippet to reproduce the issue.
- Your OS, Rust version (
rustc --version), and commit hash. - Relevant error output with sensitive data redacted.
For security-sensitive issues, please follow responsible disclosure and contact the maintainers privately before opening a public issue.
By contributing to this project you agree that your contributions are released under the CC0 1.0 Universal licence, the same licence that covers the project.