GithubHelp home page GithubHelp logo

Comments (4)

gwillen avatar gwillen commented on September 24, 2024

Yeah, everything you say is true. :-( I will make sure this gets fixed one way or another before the next release -- I'm rewriting some stuff around it anyway. Thanks!

from elements.

gwillen avatar gwillen commented on September 24, 2024

@sipa As I recall, you objected strongly to the approach I originally used for signing values, which was to add the value to the CTxIn. Unfortunately it's now seeming even more like that is going to be needed if we want to be able to sign the values of all inputs we're hashing over, not just the one we're currently signing for. We could definitely try to pass them all in when signing, but it's not clear they'll be as readily available.

Alternatively we could just not sign the values of the other inputs (perhaps that's what you had in mind.) But especially since we're moving towards flexibility on which inputs/outputs get signed, it would be nice not to have to skip that. (We could, I suppose, only sign the current input's value IF we are signing in default "sign-all" mode, and require the values of any other to-be-signed inputs to be directly supplied if signing in bitmask mode.)

Thoughts?

from elements.

rustyrussell avatar rustyrussell commented on September 24, 2024

Just hash the value for the being-consumed output after you've hashed all the inputs.

There's no reason to hash the value of the other outputs anyway; you only care that this one doesn't change, and the other outputs will get committed by the other inputs' signatures.

from elements.

instagibbs avatar instagibbs commented on September 24, 2024

This seems like pre-segwit discussions... closing

from elements.

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.