
- Bitcoin mainnet anchoring service for 4NK relay data volumes - REST API for processes, metrics, and anchors - PostgreSQL database with SQLx - Docker support with compose file - Configuration via TOML - Periodic anchoring based on block intervals - Conditional payment system (priceMoSats, btcAddress) - Process state snapshot with cryptographic hash - Health check endpoint Version: 0.1.0 (MVP)
34 lines
700 B
Plaintext
34 lines
700 B
Plaintext
[server]
|
|
host = "0.0.0.0"
|
|
port = 8082
|
|
log_level = "info"
|
|
|
|
[bitcoin]
|
|
network = "mainnet"
|
|
rpc_url = "http://localhost:8332"
|
|
rpc_user = "bitcoin"
|
|
rpc_password = "your_password_here"
|
|
wallet_name = "certificator_wallet"
|
|
min_confirmations = 6
|
|
|
|
[relay]
|
|
websocket_url = "ws://sdk_relay:8090"
|
|
monitor_interval_secs = 60
|
|
|
|
[anchoring]
|
|
interval_blocks = 4320 # ~30 days (144 blocks/day)
|
|
auto_anchor = true
|
|
tx_fee_sat_per_vbyte = 10
|
|
|
|
[database]
|
|
url = "postgresql://certificator:password@localhost/certificator_db"
|
|
max_connections = 10
|
|
|
|
[redis]
|
|
url = "redis://localhost:6379"
|
|
cache_ttl_secs = 3600
|
|
|
|
[api]
|
|
jwt_secret = "your_secret_key_here_change_in_production"
|
|
cors_allowed_origins = ["https://dev4.4nkweb.com"]
|