Comments (4)
Wow, very interesting @kewde. Thanks so much for taking the time to write this up. I am about to merge in a feature later today and then I will take a deeper dive ๐
from zap-desktop.
Cool, let me know if you have any issues with it!
I noticed that you already use a static channel 'lnd' for the IPC communication, so I don't think you'll have to completely overhaul the architecture to apply the sandbox.
Also another interesting security feature that you can add is a "payment confirmation model" on the backend. An exploit in the UI would be unable to bypass the payment confirmation model: an attacker that exploited an XSS vulnerability still can't steal any coins without user interaction. All communications are forced through IPC, and the backend would take care of the confirmation box. This assumes that the lnd-rpc is executed on the backend (main/browser process).
Here is a pseudocode
Clicked 'send Payment button'
----> ipcRenderer.send('lnd', 'sendPayment + details)
----> ipcMain.on('lnd', ..)
----> if( action === sendPayment) {
open payment confirmation model
----> if OK then execute payment through lnd rpc.
}
from zap-desktop.
Yeah so I took a deeper look, I think the architecture already supports sandbox support, since we moved away from Node/WS and went with ipcRenderer. I'll give it a try when I'm done with my current todo list.
Other security features like confirming payments should definitely be considered, but probably not until the MVP for testnet is done
from zap-desktop.
I've added an extended example that allows for multi-channel support (using a whitelist). Always happy to assist with any questions.
from zap-desktop.
Related Issues (20)
- Transaction Never Settles from Strike HOT 6
- Help to recover Zap in LND HOT 4
- Add lightning-network as a topic to this repository HOT 1
- Import Normal Bitcoin Private Key?
- Doesn't show balance of the wallet
- Make onboarding much easier to get started with DEPOSIT required OR onboardin instructions popup
- ZAP Bitcoin wallet ERROR - Lnd has unexpectedly quit! Error code: 1 Error signal: Unknown Error message: Shutting down because error in main method: error creating wallet config: unable to initialize neutrino backend: unable to create neutrino light client: unable to read header: EOF Ok HOT 1
- LND Nodes and channels cannot be found on the 1ML lightning network browser with publickey
- Why can't remote funds be set when zap creates a channel
- Wallet hangs - will not load data from block-chain
- [Windows] Cannot read property 'unlockWallet' of null HOT 1
- [Windows] Unsupported prerelease version: 0.16.99-beta commit=tor/v1.1.1-48-ga6fc5d075-dirty
- Core Lightning support?
- LND 0.16.4
- Can't connect to home node running behind tor HOT 2
- how to solve this problem โCannot read property 'unlockWallet' of nullโ
- Wallet throws AutoUpdater Error
- OpenSSL "digital envelope routines", "unsupported"
- Zap Solutions <[email protected]> key expired
- Unable to open channel: 2 UNKNOWN
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zap-desktop.