graph LR
Funding -- funding transaction is rejected --> Failure
Funding -- funding transaction is accepted --> Funded
Funded -- payment attempt expires --> Refunding
Funded -- gateway cancels payment attempt --> Refunding
Funded -- payment is confirmed --> Success
Refunding -- payment is confirmed --> Success
Refunding -- ecash is minted --> Refunded
Refunding -- minting ecash fails --> Failure
graph LR
Pending -- payment is confirmed --> Claiming
Pending -- invoice expires --> Expired
Claiming -- ecash is minted --> Claimed
Claiming -- minting ecash fails --> Failure
Is this state transition necessary? I thought the gateway would return to the client the preimage, then the client would present the preimage to the federation? My thinking is that the last transition (waiting on the gateway to return the preimage or the forfeit signature) is sufficient.
Refresh my memory on this part. I understand that it is now possible to prove to the federation that the client did not supply a valid preimage. Is there a punishment in this case? What do you mean by "claim it ourselves"?