peercoin / peercoin/coinlib

BIP0174 PSBT Support

Open
#1 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dart
Stars
7
Forks
19
PR merge metrics
No merged PRs in 30d

Description

Create a new PartiallySignedTransaction class that allows creation, updating and signing of transactions in the PSBT BIP0174 format.

  • Create classes for the underlying PSBT data structure: PSBTKeyValue, PSBTMap as Writable classes.
  • Create abstract PSBT class for overall data structure: PartiallySignedTransaction. Include interface for updating input/output data, signing, merging, finalizing and obtaining the complete transaction.
  • Add write method to PartiallySignedTransaction.
  • Create PartiallySignedTransactionV1 to represent the BIP0174 PSBT which is technically v0 but often regarded as v1. Include a create named constructor.
  • Implement update methods.
  • Implement signing.
  • Implement merging.
  • Implement finalization.
  • Implement transaction construction.
  • Add a fromReader factory constructor to PartiallySignedTransaction to check for and return the relevant sub-class: only PartiallySignedTransactionV1 to begin with.
  • Add all test vectors for BIP0174.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the BIP0174 specification and the repository's existing transaction and Writable abstractions. Map the requested PSBTKeyValue, PSBTMap, PartiallySignedTransaction, and PartiallySignedTransactionV1 classes before implementing their update, signing, merging, finalization, and construction interfaces. Use the BIP0174 test vectors to define completion.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
blockchain
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.