Skip to content
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

Support psetv2 taproot fields #221

Merged
merged 6 commits into from
Nov 17, 2023

Conversation

louisinger
Copy link
Collaborator

This PR adds input taproot fields in psetv2.Input struct and add support to sign and finalize them

TL;DR

  • pset taproot fields on Input, serialization and deserialization
  • add Updater methods associated with taproot fields
  • add Signer methods to sign a tapscript input & sign with taproot key-path
  • add default finalizers in Finalize for tapscripts leaves and key-path.
  • add 2 psetv2 taproot test (1 tapscript checksig, 1 key-path)

it closes #220

@altafan please review

psetv2/input.go Outdated Show resolved Hide resolved
psetv2/input.go Outdated Show resolved Hide resolved
psetv2/input.go Outdated Show resolved Hide resolved
psetv2/input.go Outdated Show resolved Hide resolved
psetv2/input.go Outdated Show resolved Hide resolved
psetv2/input.go Outdated Show resolved Hide resolved
psetv2/input.go Outdated Show resolved Hide resolved
psetv2/input.go Outdated Show resolved Hide resolved
psetv2/input.go Outdated Show resolved Hide resolved
psetv2/input.go Outdated Show resolved Hide resolved
psetv2/input.go Outdated Show resolved Hide resolved
psetv2/input.go Outdated Show resolved Hide resolved
psetv2/input.go Outdated Show resolved Hide resolved
psetv2/input.go Outdated Show resolved Hide resolved
psetv2/input.go Outdated Show resolved Hide resolved
psetv2/input.go Outdated Show resolved Hide resolved
psetv2/signer.go Outdated Show resolved Hide resolved
psetv2/signer.go Outdated Show resolved Hide resolved
psetv2/updater.go Outdated Show resolved Hide resolved
psetv2/updater.go Outdated Show resolved Hide resolved
psetv2/input.go Outdated Show resolved Hide resolved
psetv2/input.go Outdated Show resolved Hide resolved
psetv2/input.go Outdated Show resolved Hide resolved
psetv2/finalizer.go Outdated Show resolved Hide resolved
psetv2/finalizer.go Outdated Show resolved Hide resolved
psetv2/finalizer.go Outdated Show resolved Hide resolved
psetv2/finalizer.go Outdated Show resolved Hide resolved
psetv2/finalizer.go Outdated Show resolved Hide resolved
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com>
louisinger and others added 2 commits November 15, 2023 17:06
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com>
psetv2/updater.go Outdated Show resolved Hide resolved
louisinger and others added 2 commits November 16, 2023 10:30
Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com>
@altafan altafan merged commit 786a89e into vulpemventures:master Nov 17, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[psetv2] add taproot input fields and the associated updater/signer methods
2 participants