Code Monkey home page Code Monkey logo

Comments (5)

kallewoof avatar kallewoof commented on July 17, 2024

@Barno The reason why it fails is because it does not have the necessary data to evaluate the signature. It requires the input transaction and the transaction itself in order to generate the signature hash.

from btcdeb.

Barno avatar Barno commented on July 17, 2024

@kallewoof thanks for reply.
Both script have the same parameters. Even the stack is the same if I compare.
The signature, the public key and the UTXO are the same.
Just one different <<< scriptPubKey >>>
image

I can check the OP_CHECKSIG only with tx= ?

from btcdeb.

kallewoof avatar kallewoof commented on July 17, 2024

The signature check can only happen if btcdeb also has the transaction data, which it doesn't for the right case (it only has the script containing the signature and pubkey, not the input -- it literally has no way of checking whether the signature is valid or not).

from btcdeb.

Barno avatar Barno commented on July 17, 2024

Ok I understand, btcdeb check the signature against Public key and "message".
thanks again :)

from btcdeb.

kallewoof avatar kallewoof commented on July 17, 2024

@Barno FYI: https://github.com/kallewoof/btcdeb/blob/master/doc/mock-values.md

from btcdeb.

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.