bosagora / agora

POC Node implementation for CoinNet
https://bosagora.io
MIT License
36 stars 22 forks source link

Flash: Delegate all signing operations to the wallet #2422

Open omerfirmak opened 3 years ago

omerfirmak commented 3 years ago

Currently, wallet shares its seed with the Flash node for it to create all necessary signatures during a channel's lifetime.

This assumes that each user runs their own Flash node, or fully trusts the node operator. Ideally we want an end user to able to use a third-party service for its Flash needs, a node.

The biggest issue here is the on-chain fees that Flash nodes currently add to the transactions before they are published to the network, for unilateral close operations. For that, node needs access to the private key in real-time. Since user's wallet can be offline for most of the time and cannot be relied on, third-party node operator would have to cover those on-chain fees and charge its customer accordingly.

omerfirmak commented 3 years ago

This also should include decryption and encrpytion of Onion packets.

Geod24 commented 3 years ago

@omerfirmak : Wasn't this fully covered by #2493 ?

omerfirmak commented 3 years ago

@omerfirmak : Wasn't this fully covered by #2493 ?

No this still has ways to go.