Skip to content
This repository was archived by the owner on Dec 13, 2019. It is now read-only.

[node] Decouple deposit commitment from onchain transaction #2516

@rhlsthrm

Description

@rhlsthrm

User story (Mosendo use case):

As a user, I need to have a deposit address that allows my money to be instantly spendable offchain when funds are transferred to it asynchronously. This is complicated by the fact that I might sometimes use Sendwyre and other services that can deposit at any time, any arbitrary amount into the address. I want to be able to log into my wallet and spend these funds instantly after the transaction is complete.

Proposed solution/discussion:

The prerequisite to making this work is to split up the deposit commitment from the deposit transaction.

However, this does not solve the case where funds are transferred to the deposit address asynchronously when the client is offline.

One thought to solve the above is to assume that any "unallocated" funds (i.e. not free balance, not in apps), can be "claimed" by either party. We can make this opinionated in our client-hub implementation by assuming that the hub will never asynchronously deposit, and we will always accept the client's request to claim the unallocated funds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions