question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature] Add custodial mode

See original GitHub issue

Currently, the instance admin is the only one able to use Lightning, as the private keys are necessary to accept payment, and it is impossible to do the xpub style of “the server just generates addresses” for non-custodial usage.

Proposal: Add a custodial mode where separate stores and users can be created from the instance admin's lightning and the instance admin's xpubs.

This will require a few extra changes to such accounts.

A custodial account must also store:

  1. A history of amounts paid and unpaid that the store admin can view but not change or delete.
  2. Each payment entry should have a state of “reimbursed/not reimbursed” (it will be changed to reimbursed once the custodian has paid out in fiat or crypto (whatever is agreed upon).
  3. Each store of a custodial account should have an option to select which currencies to be reimbursed in, and by what percentage. (including fiat and crypto)
  4. The admin account should have a setting for which currencies that they can reimburse with… only currencies explicitly selected in this setting can be chosen by the custodial account.

Also needs solving:

  1. What APIs should an exchange / processor provide to btcpayserver?
  2. What APIs should the btcpayserver provide to the exchange / processor?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:29 (17 by maintainers)

github_iconTop GitHub Comments

4reactions
dennisreimanncommented, Oct 15, 2020

@brainharrington I’m currently making good progress on that front. Hope we can release a v0.1 soonish 😃

1reaction
Kukkscommented, Aug 7, 2020

From btcpay point of view, it is harder and we don’t want to couple btcpay to lnbits explicitly. Having it as a lightning node simplifies work considerably.

On Fri, 7 Aug 2020, 14:47 losnappas, notifications@github.com wrote:

Right, in that case. But should that be the case? Isn’t it better to treat lnbits as lnbits? Much easier that way, less complicated.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/btcpayserver/btcpayserver/issues/204#issuecomment-670499189, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN357ULD5DUQZ5MRJYX37DR7PZWVANCNFSM4FE5MNGA .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add custodians to an eDiscovery (Premium) case
To add custodians to a case, you must be a member of the eDiscovery Manager role group. This provides you with the necessary...
Read more >
MetaMask Institutional Introduces Custodian Account Multi- ...
This will give custodians the capabilities to add, sign, and broadcast any custom RPC url specified by the user—making the roll out of...
Read more >
AWS Execution Modes
Pull mode execution of a policy. Queries resources from cloud provider for filtering and actions.
Read more >
Considerations for using Chain of Custody verification for 7 ...
The SnapLock Chain of Custody verification can take a significant amount of time based on the number of files on the 7-Mode SnapLock...
Read more >
Approve or reject the processing of custodial and non- ...
Navigate to All > Legal Request > Legal Counsel Center. · Click the list icon ( · In the Lists tab, under My...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found