raiden-network / raiden

Raiden Network
https://developer.raiden.network
Other
1.84k stars 376 forks source link

[META] Allow encrypted secret to be sent on LockedTransfer's metadata #7071

Open fredo opened 3 years ago

fredo commented 3 years ago

Note: Duplicate of https://github.com/raiden-network/light-client/issues/2730

Description

An improvement to the transfer workflow is for the node to be able to send the transfer's secret ECIES encrypted to the target, so they don't need to request it from the initiator off-band, making the transfer faster, reducing the number of messages, removing the requirement for non-channel-connected nodes to be able to communicate. The drawback is that the initiator can't know the transfer failed until it expires, due to they losing the ability to chose to reveal the secret or not, which now lays with the target.

Protocol

Acceptance criteria

Tasks

ulope commented 3 years ago

See https://github.com/raiden-network/light-client/issues/2730#issuecomment-847734343

fredo commented 3 years ago

additional note:

It should also be checked if the state machine of the initiator is modeled such that it waits for the secret request. If so we need to change that it will skip this part if the secret arrives before the request happened.