Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Jul 25, 2023
1 parent d10b223 commit 45c3f04
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions cashu/mint/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,20 +219,14 @@ async def split(
payload: PostSplitRequest,
) -> Union[PostSplitResponse, PostSplitResponse_Deprecated]:
"""
Requetst a set of tokens with amount "total" to be split into two
newly minted sets with amount "split" and "total-split".
Requests a set of Proofs to be split into two a new set of BlindedSignatures.
This endpoint is used by Alice to split a set of proofs before making a payment to Carol.
It is then used by Carol (by setting split=total) to redeem the tokens.
"""
logger.trace(f"> POST /split: {payload}")
assert payload.outputs, Exception("no outputs provided.")

# split_return = await ledger.split(payload.proofs, payload.amount, payload.outputs)
# frst_promises, scnd_promises = split_return
# resp = PostSplitResponse(fst=frst_promises, snd=scnd_promises)
# logger.trace(f"< POST /split: {resp}")
# return resp
promises = await ledger.split(
proofs=payload.proofs, outputs=payload.outputs, amount=payload.amount
)
Expand Down

0 comments on commit 45c3f04

Please sign in to comment.