Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Conversation

@AustEcon
Copy link

@AustEcon AustEcon commented Jul 28, 2022

As discussed with @jadwahab and @sirdeggen here is the PR for updating to the TSC spec: https://tsc.bitcoinassociation.net/standards/direct_payment_protocol/

Corresponding dual PR here: libsv/go-dpp#69

So far this only updates the PaymentRequest structure which is enough for now to get ElectrumSV through the first part of the data flow for development...

Still to do:

  • Payment
  • PaymentACK
  • Adequate testing end-to-end against this code

Until the dpp-proxy is updated to the TSC spec, ElectrumSV will be building against this feature branch to avoid technical debt of the old message structures.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congrats, you just opened your first pull request on libsv/go-payment_protocol! Thank you for contributing!

@AustEcon AustEcon force-pushed the features/update-for-tsc-spec-compliance branch 2 times, most recently from 8eeaa02 to a3461a8 Compare July 28, 2022 10:11
AustEcon added a commit to electrumsv/electrumsv-dpp-proxy that referenced this pull request Jul 28, 2022
@AustEcon AustEcon force-pushed the features/update-for-tsc-spec-compliance branch from bb57364 to 8e9ef95 Compare July 29, 2022 14:18
@AustEcon AustEcon force-pushed the features/update-for-tsc-spec-compliance branch from 3bbe7ef to 472efa9 Compare August 8, 2022 06:41
@rt121212121 rt121212121 force-pushed the features/update-for-tsc-spec-compliance branch 2 times, most recently from ea4c5a3 to 09dc8a0 Compare September 17, 2022 00:40
@AustEcon AustEcon force-pushed the features/update-for-tsc-spec-compliance branch from cac0db3 to 09dc8a0 Compare October 6, 2022 16:55
AustEcon and others added 15 commits October 11, 2022 14:33
…: `features/updates-for-tsc-spec-compliance`

- This in turn results in updates of the other vendored dependencies
… to the latest version of `go-dpp` feature branch commit
…the `JSONEnvelope` based signed model. This also removes `payd` as a dependency, although there are remnants of configuration variables.
… runtime error: invalid memory address or nil pointer dereference'. Generate the swagger update.
- This includes relayed `payment.error` messages over the websocket from the payee (for example: `bad-txns-premature-spend-of-coinbase`)
… fields of the dpp.PaymentACK struct (as this is not a part of the TSC specification)

- The payee wallet returns a `server.ClientError` in the body of the `payment.error` websocket message (this has not changed) and this is parsed and translated into the appropriate http error response. The `PaymentACK` was being inappropriately used in some cases as a way to pass around error details. This is no longer the case.
- A `PaymentACK` object is only returned in the cased of successful payment.
@AustEcon AustEcon force-pushed the features/update-for-tsc-spec-compliance branch from 41625d4 to 890a9e0 Compare October 11, 2022 01:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants