Skip to content

Add private-signet Floresta Utreexo anchor export#31

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

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

Conversation

@ekulkisnek
Copy link
Copy Markdown

@ekulkisnek ekulkisnek commented May 26, 2026

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
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.
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