-
Notifications
You must be signed in to change notification settings - Fork 116
Added Jupyter Chapter 2.1 (Segwit v1 outputs) #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
rebased on master |
|
Updated for this branch. |
|
rebased on master |
|
pushed a commit addressing some nits |
|
Need to update assertions over the version. |
|
What do you think about using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some nits. but other than that looks great :)
elichai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some nits. everything looks great except that the answers don't work for me.
It all works fine until:
# Construct transaction witness
witness = CScriptWitness()
witness.stack.append(sig_agg)
witness_in = CTxInWitness()
witness_in.scriptWitness = witness
spending_tx.wit.vtxinwit.append(witness_in)
# Serialize Schnorr transaction for broadcast
spending_tx_str = spending_tx.serialize().hex()
# Test mempool acceptance
print(test.nodes[0].testmempoolaccept([spending_tx_str]))
Which gives me:
[{'txid': '3ec5138e77b3a9d179adf65084ba57742521f45b22c30cc56cb3f132e88dd6c4', 'allowed': False, 'reject-reason': '64: non-mandatory-script-verify-flag (Invalid signature for taproot key path spending)'}]
- add more introduction - remove Part B from the exercise - much more
|
All review comments addressed. Time to merge. |
This is the first part of the workshop after the Schnorr chapters, and also the first chapter where participants begin to construct transactions (for broadcast).