Git Product home page Git Product logo

Comments (5)

dannydeezy avatar dannydeezy commented on August 29, 2024

i think this makes sense, lets be weary not to break existing clients though

but also, why is it difficult to validate these signatures when finalized? is it just due to the lack of support in bitcoinjs-lib?

from openordex.

timechainz avatar timechainz commented on August 29, 2024

Agree completely @dannydeezy. I think the first step would be to simply implement item 2 above. If the input is not finalized, validate the input rather than discarding the offer. This would allow other entities to not finalize inputs but still appear on openordex.

Regarding bitcoinjs-lib, I had to report a couple bugs to get signature validation to work for taproot addresses. The library does not support verification of finalScriptWitness. The tldr is that it is tricky because it requires current network state, scripts must be validated in addition to signatures and should probably be verified by bitcoin-core rather than a client-side lib.

You can read more on the subject here:
bitcoinjs/bitcoinjs-lib#1933
bitcoinjs/bitcoinjs-lib#1520

from openordex.

orenyomtov avatar orenyomtov commented on August 29, 2024

Hey,

I love this idea, and this should probably have been it was implemented from the get go.

Unfortunately, OpenOrdex is no longer actively maintained.

Feel free to use the NIP or this issue/repo as a schelling point of any kind for coordination of ordinal PSBT standards.

Best,
Oren

from openordex.

habibitcoin avatar habibitcoin commented on August 29, 2024

@timechainz were you ever able to find a way to extract the transaction and/or validate the final script witness?

from openordex.

timechainz avatar timechainz commented on August 29, 2024

@timechainz were you ever able to find a way to extract the transaction and/or validate the final script witness?

No, I haven't looked into it much other than the links and what I posted above. I think a better solution is to not prematurely finalize the PSBTs to allow clients to properly validate. I'm currently handling prematurely finalized PSBTs by showing the user a warning that the tx may fail.

from openordex.

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.