diff --git a/src/simple_sign/sign.py b/src/simple_sign/sign.py index 105ce66..b54575d 100644 --- a/src/simple_sign/sign.py +++ b/src/simple_sign/sign.py @@ -58,6 +58,14 @@ def retrieve_aliased(pkey: str) -> str: is consistent parsing of metadata that allows this function to be broadly applicable across functions. """ + + """ + given all unspent, we need all aliases: + http://0.0.0.0:1442/matches?unspent + from the list of aliases, return the stake key for the pkey (alias) + """ + + raise NotImplementedError("reading staked values is not yet implemented") @@ -65,6 +73,12 @@ def signature_in_staked_pool(pkey: str, token_policy_id: str, min_stake: int) -> """Validate whether the signing key belongs to a someone who has enough stake in a given token. """ + + """ + calculate all tokens for a given stake address: + http://0.0.0.0:1442/matches/stake1ux9erxtj7d4u4avfznkawu0ew7qttvv530shqm8dg09sh4g9ma27v?unspent + """ + raise NotImplementedError("reading staked values is not yet implemented") @@ -72,6 +86,12 @@ def signature_in_license_pool(pkey: str, policy_id: str) -> bool: """Validate whether signing key matches one of those in a pool of licenses associated with the project and return True if so. """ + + """ + find license for a given stake address: + http://0.0.0.0:1442/matches/stake1ux9erxtj7d4u4avfznkawu0ew7qttvv530shqm8dg09sh4g9ma27v?unspent + """ + raise NotImplementedError("reading from license pool is not yet implemented")