segregated witness – Which non-public key’s utilized in Taproot transactions?


The transaction solely has one enter, the place its scriptPubKey is –> Op_1 Q , the place Q is the tweaked public key.

Let p = non-public key, P = Public key, q = p + tweak, Q = tweaked Public key

To create the transaction you must populate the witness area:

  1. Key Path Spend:
    Do you employ q (the tweaked non-public key) to signal the transaction?

    That’s, s = ok + H(R,Q, txdata)q and sig is (R,s) the place ok is the nonce

  2. Script Path Spend: Do you employ p (untweaked inside non-public key) to signal the transaction

    That’s, s = q + h(Q,P, txdata)p and sig is (Q,s) the place q is now the nonce

I’m not a coder so looking for the reply to this has been tough provided that I feel you would want to code to know how the mechanics works.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top