mint start

This commit is contained in:
callebtc
2022-09-11 14:46:23 +03:00
parent 283e3a74aa
commit 6b470080eb
5 changed files with 21 additions and 4 deletions

View File

@@ -29,6 +29,19 @@ async def store_promise(
)
async def get_proofs_used(
db: Database,
conn: Optional[Connection] = None,
):
rows = await (conn or db).fetchall(
"""
SELECT secret from proofs_used
"""
)
return [row[0] for row in rows]
async def invalidate_proof(
proof: dict,
db: Database,