Coder Social home page Coder Social logo

Upcoming changes v0.9.0: upgradable wallet, domain name binding, conditionally triggered auto-recovery, recover tokens about one-wallet HOT 2 CLOSED

polymorpher avatar polymorpher commented on June 14, 2024
Upcoming changes v0.9.0: upgradable wallet, domain name binding, conditionally triggered auto-recovery, recover tokens

from one-wallet.

Comments (2)

polymorpher avatar polymorpher commented on June 14, 2024

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.

polymorpher avatar polymorpher commented on June 14, 2024

Done. Mechanism is slightly altered. To add documentation later.

from one-wallet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.