Files
plm-lottery/apps/lottery/addresses.py
T

11 lines
376 B
Python
Raw Normal View History

"""The address under which a participant appears in the public draw list (RND-14, DAT-65)."""
from django.conf import settings
from .simulation import simulated_address
def participant_address(user) -> str:
if settings.LEDGER_BACKEND == "simulated":
return simulated_address(user)
raise NotImplementedError("HD addresses arrive with phase B (roadmap B4)")