B2: network profile for mainnet and regtest, explicit confirmation for mainnet (ADR-58, ELC-30)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
davideandClaude Sonnet 5.5 committed 2026-11-16 15:38:29 +01:00
1 parent 3ee60a23da
commit 9c832fd3d2
16 files changed
+261 -36

No files matched your search

+6
View File
@@ -1,6 +1,7 @@
"""The address under which a participant appears in the public draw list (RND-14, DAT-65)."""
from django.conf import settings
from plm_engine.address import is_valid_address as _is_valid
from .simulation import simulated_address
@@ -9,3 +10,8 @@ def participant_address(user) -> str:
if settings.LEDGER_BACKEND == "simulated":
return simulated_address(user)
raise NotImplementedError("HD addresses arrive with phase B (roadmap B4)")
def is_valid_address(address: str) -> bool:
"""A destination on the configured network: its hrp is the profile's (ADR-58, ADR-05)."""
return _is_valid(address, settings.PLM_PROFILE)