Skip to content

Add private-signet Floresta Utreexo anchor export#31

Open
ekulkisnek wants to merge 25 commits into
LayerTwo-Labs:masterfrom
ekulkisnek:codex/floresta-utreexo-anchors
Open

Add private-signet Floresta Utreexo anchor export#31
ekulkisnek wants to merge 25 commits into
LayerTwo-Labs:masterfrom
ekulkisnek:codex/floresta-utreexo-anchors

Conversation

@ekulkisnek

@ekulkisnek ekulkisnek commented May 26, 2026

Copy link
Copy Markdown

Summary

  • add private-signet RPC methods for Floresta-compatible Utreexo anchor entries
  • gate anchor export at runtime so it only runs when the BitAssets node is on Network::Signet
  • add a CLI command to write a private-signet anchors.json from explicit Bitcoin P2P Utreexo peers or active local peers
  • add serialization coverage for the exact anchors.json shape Floresta expects

Notes

This intentionally does not change BTC mainnet behavior. The plain BitAssets node currently has Signet, Regtest, and Forknet modes; this support is scoped to private signet only and the RPC server rejects it on other modes.

The explicit --peer path should be used for real private-signet Bitcoin P2P peers advertising Utreexo support. The --active path is only for local private-signet setups that deliberately reuse the same address for BitAssets and Bitcoin P2P.

Test plan

  • cargo test -p plain_bitassets_app_rpc_api
  • cargo check -p plain_bitassets -p plain_bitassets_app -p plain_bitassets_app_cli
  • cargo run -p plain_bitassets_app_cli -- export-private-signet-utreexo-anchors --help

ekulkisnek added 11 commits May 18, 2026 23:02
Add get_transaction_proof RPC/CLI, include sidechain height in proof payload, tolerate local BMM broadcast race, reduce Docker context, and allow AMM first mint to create a missing pool.
Teach the BitAssets RPC API to produce Floresta-compatible Utreexo anchor entries from explicit Bitcoin P2P peers or active local peers.

Add a CLI command that can write anchors.json for a Floresta data directory, and cover the serialized anchor shape with a unit test.
@ekulkisnek ekulkisnek force-pushed the codex/floresta-utreexo-anchors branch from 545143e to 4b39f7c Compare May 26, 2026 13:43
@ekulkisnek ekulkisnek changed the title Add Floresta Utreexo anchor export Add private-signet Floresta Utreexo anchor export May 26, 2026
ekulkisnek and others added 14 commits May 26, 2026 11:26
Configure the plain-bitassets QUIC client and lite-wallet server with a shared ALPN so Rustls/Quinn clients can complete the handshake against the private signet endpoint.
Add a signet-gated BitAssets RPC/CLI endpoint that exports Floresta-compatible Utreexo peer-source metadata, including anchor service flags and reachable BitAssets RPC/P2P/QUIC addresses derived from the requested peer IP.
… standalone verify_lbtc + run log as executable evidence for ElementsRpc wiring
Adds Tab::Bmm and Tab::Simplicity variants to the Tab enum so the
miner status panel and Simplicity TX builder are reachable from the
UI. Removes the BitAssets and Messaging stubs that were inherited
from the plain-bitassets fork but are not relevant to liquid-simplicity.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
miner.rs: polls mainchain tip height (via enforcer gRPC) and elementsd
block count (via elements_rpc) on first show and on Refresh button click,
displaying live values instead of static placeholders.

simplicity.rs: resolve python script and elements-cli paths at runtime —
checks SIMPLICITY_E2E_SCRIPT env var, then ~/.config/liquid-simplicity/,
then falls back to the original hardcoded path. Same for ELEMENTS_CLI_BIN
and SIMPLICITY_REPO_ROOT.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant