* add htlc files

* refactor mint into several components

* add hash lock signatures

* add refund signature checks

* simplify hash lock signature check

* clean up
This commit is contained in:
callebtc
2023-09-23 19:08:38 +02:00
committed by GitHub
parent 6282e0a22a
commit f1b621fa90
14 changed files with 865 additions and 430 deletions

View File

@@ -48,6 +48,8 @@ class Proof(BaseModel):
p2pksigs: Union[List[str], None] = [] # P2PK signature
p2shscript: Union[P2SHScript, None] = None # P2SH spending condition
htlcpreimage: Union[str, None] = None # HTLC unlocking preimage
htlcsignature: Union[str, None] = None # HTLC unlocking signature
# whether this proof is reserved for sending, used for coin management in the wallet
reserved: Union[None, bool] = False
# unique ID of send attempt, used for grouping pending tokens in the wallet