Comments (2)
Updates to upgrade mechanism, implemented in #82:
One of new mechanisms is called forwarding and back-linking. They allow the wallet to specify future payment it receives to be forwarded to another contract. It also keeps a record of backlinks: a list of 1wallets that are forwarding payments to this wallet. This mechanism allows the client to upgrade the user’s wallet by spawning a new wallet when a new version is available, and have the old wallet to forward all funds received to the new wallet.
In the PR, the backlinks are left empty - I will add another argument in the wallet constructor to set that value, as well as another OperationType.
Once wallet A is set to forward to wallet B, wallet B will have full control over wallet A, bypassing all security checks. Forward doesn’t automatically transfer wallet A's assets to the wallet B, unless wallet A's recovery address is unset (0 or default value).
To transfer all remaining assets in wallet A to the wallet B (the forwarding address), wallet A's recovery address needs to send some amount of ONE to approve the transfer. If wallet A’s recovery address sends 1.0 ONE to wallet A, all the remaining assets of wallet A will be transferred to the recovery address. If it sends any other amount, all the remaining assets will be transferred to wallet B (the forwarding address).
from one-wallet.
Done. Mechanism is slightly altered. To add documentation later.
from one-wallet.
Related Issues (20)
- Self-hosted RPC nodes with fast confirmations, health and performance monitoring, and service guarantees HOT 1
- Smart contract test framework HOT 1
- Smart contract tests with 90% operation coverage HOT 1
- Domain transfer from old wallet is failing silently in v16, and reclaim does not work
- Relayer analytics and metric reporting endpoints HOT 3
- MultiSig Withdrawal HOT 18
- Satellite wallets - enabling transfer to exchange accounts and importing existing wallets (such as MetaMask)
- 1Wallet transaction to exchange account . How can they retrieve it? HOT 1
- Relayer stats visualizations and more granular error classification
- Improve accuracy of Number of Wallets and Balance on ONEWallet SideBar HOT 3
- Recovery is repeatedly showing error (Money stuck) HOT 11
- Can't request contract call HOT 2
- Updating Wallet & missing ONE Tokens HOT 11
- ONE tokens did not arrive to 1wallet HOT 4
- Emergency!! About to lose all funds in wallet due to expiration on an older version wallet. HOT 5
- Funds Not Unstake on Recovery from Recovery Address HOT 4
- can't send my tokens HOT 1
- How to recover funds when 1Wallet is expired? HOT 15
- Failed to commit : network error on any transaction I try to make HOT 2
- Network errors - cannot do anything? HOT 4
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 one-wallet.