Comments (1)
Jarrad:
- You can think of the ethereum protocols as being an extension to html/js development. That is in javascript there is a new object called
web3
, in reality this web3 object is a SHIM to a JSON-RPC server running locally, which exposes a bunch of methods to interacting with Ethereum - one of these is sendTransaction(), this lets you change the state of the blockchain (if you have money to pay for it) https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sendtransaction
- this is a dangerous command because it actually spends or sends a users money
- now in normal operation, the account is usually locked, if the account is locked, sendTransaction method fails, we want to keep the account locked at all times, and we want to require the user to enter their password when a sendTransaction is requested
- in order to do so, we need to intercept when this sendTransaction is called, then we need to notify React Native (via Java/Objective-C there should be code for doing this already), and it will validate the transaction (user views and enters password) and returns to complete the transaction on Go side
- IMPORTANT: however we want this to be async/non-blocking and we need to account for multiple transactions accumulating
Corresponding code in status-go bindings:
- https://github.com/status-im/status-go/blob/node-object-jni/src/library.c#L132
- https://github.com/status-im/status-go/blob/node-object-jni/src/library.c#L205
- status-im/status-go@96c1b5e (whisper message notification example)
Extra:
- works started (by Daniel): b31b711 (basically, send transaction now only adds to the channel. We then need to "complete transaction" as you process from the channel, where "complete transaction" is the functionality that was previously in send transaction)
- related to status-im/status-go#18
from go-ethereum.
Related Issues (20)
- Docker images
- Prioritize peers with white-listed sub-protocols
- Get free from LES if using a remote node HOT 2
- Implement observer chain HOT 4
- Implement event logger HOT 2
- Implement Ultra Light Client Mode HOT 1
- Use relative time for Whisper TTL
- Implement chain filters HOT 1
- downloader N/M validation HOT 1
- ULC config refactoring HOT 1
- ULC simulation tests HOT 1
- Clint connection to trusted node
- Fix incorrect announce type
- Trusted nodes list investigation
- ULC: mechanism to remove and add trusted servers
- ULC: incapsulate consensus logic
- Fix LES test with --race flag HOT 1
- Allow to use untrusted peers
- status-go integration
- ULC documentation
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 go-ethereum.