Giter Club home page Giter Club logo

Comments (3)

jjyr avatar jjyr commented on June 23, 2024

Suggest change the multisign_script to a more general option, let it works for both multisig and single signature.

We can easily extend it to support check tx since field (or other features), I am thinking this for a long time we should support since in system lock script.

For example multi=2/3,since=1d, represents the multisig is a 2 of 3, and the tx to spent this cell should be confirmed at least 1 day later than this cell created. We can also use position to indicates the option but then it will be relatively hard to upgrade or extend.

We can support a few basic since option:

  • 1d, 1y, 1w, 1h we can spend this cell after X day/year/week/hours.
  • 1b, 1e we can spend cell after 1 block, or 1 epoch.
  • Add ! before the value to indicate value represent absolute time. for example: !1000b, !1568186924s.

from ckb-system-scripts.

CipherWang avatar CipherWang commented on June 23, 2024

I think since field should be a initiator-determined parameter, which means it is the transaction initator who should set it, not the receiver. And the address is a receiver-determined parameter. It is inappropriate to include since in address.

System scripts is used for most of users. If they use addresses with since, different since will generate different addresses even with the same PK. It is hard to explain why they cannot find all transactions on CKB Explorer for the same PK.

from ckb-system-scripts.

jjyr avatar jjyr commented on June 23, 2024

I think since field should be a initiator-determined parameter, which means it is the transaction initator who should set it

the lock script can also constraint when a cell can be spent by verify tx since, it works similarly as Bitcoin script.

https://github.com/bitcoin/bips/blob/master/bip-0112.mediawiki#escrow-with-timeout

different since will generate different addresses even with the same PK.

Most time, users will ignore the since field, I am also curios how a multisig user can find txs?

from ckb-system-scripts.

Related Issues (8)

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.