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

DLC Funding Update #2026

Merged
merged 13 commits into from
Sep 17, 2020
Merged

DLC Funding Update #2026

merged 13 commits into from
Sep 17, 2020

Conversation

nkohen
Copy link
Collaborator

@nkohen nkohen commented Sep 16, 2020

Updated DLC funding input and funding signature communication (as per the most recent changes on discreetlogcontracts/dlcspecs#81) and followed through with the necessary structural changes in our dlc implementation.

@nkohen nkohen added the dlc label Sep 16, 2020
@nkohen nkohen requested a review from benthecarman September 16, 2020 21:55
Comment on lines +110 to +114
val fundingInputs = if (isInitiator) {
offer.fundingInputs
} else {
accept.fundingInputs
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

We do this so much everywhere might be nice to have a function like:

chooseDLCData[A](isInitiator: Boolean, offer: DLCOffer, accept: DLCAccept, f: (DLCSetupMessage => A)): A

Copy link
Collaborator

Choose a reason for hiding this comment

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

Probably for a future PR tho

@nkohen nkohen merged commit 5b9f3cd into bitcoin-s:adaptor-dlc Sep 17, 2020
nkohen added a commit that referenced this pull request Sep 17, 2020
* Defined FundingInputV0TLV

* Defined FundingSignaturesV0TLV

* Introduced DLCFundingInput to replace OutputReference in internal DLC datatypes

* Recovered correspondence between internal dlc datatypes and TLVs

* Fixed a couple silly bugs

* Regenerated test vectors (and made regeneration code more robust)

* Removed old TLV types

* Responded to Ben's review

* Cleaned up test stuff

* Fix tests and migrations

* Fix rebase issue

* Resonded to nits

* Fix test

Co-authored-by: Ben Carman <[email protected]>
nkohen added a commit that referenced this pull request Sep 29, 2020
* Defined FundingInputV0TLV

* Defined FundingSignaturesV0TLV

* Introduced DLCFundingInput to replace OutputReference in internal DLC datatypes

* Recovered correspondence between internal dlc datatypes and TLVs

* Fixed a couple silly bugs

* Regenerated test vectors (and made regeneration code more robust)

* Removed old TLV types

* Responded to Ben's review

* Cleaned up test stuff

* Fix tests and migrations

* Fix rebase issue

* Resonded to nits

* Fix test

Co-authored-by: Ben Carman <[email protected]>
benthecarman added a commit to benthecarman/bitcoin-s that referenced this pull request Sep 30, 2020
* Defined FundingInputV0TLV

* Defined FundingSignaturesV0TLV

* Introduced DLCFundingInput to replace OutputReference in internal DLC datatypes

* Recovered correspondence between internal dlc datatypes and TLVs

* Fixed a couple silly bugs

* Regenerated test vectors (and made regeneration code more robust)

* Removed old TLV types

* Responded to Ben's review

* Cleaned up test stuff

* Fix tests and migrations

* Fix rebase issue

* Resonded to nits

* Fix test

Co-authored-by: Ben Carman <[email protected]>
nkohen added a commit that referenced this pull request Oct 1, 2020
* Defined FundingInputV0TLV

* Defined FundingSignaturesV0TLV

* Introduced DLCFundingInput to replace OutputReference in internal DLC datatypes

* Recovered correspondence between internal dlc datatypes and TLVs

* Fixed a couple silly bugs

* Regenerated test vectors (and made regeneration code more robust)

* Removed old TLV types

* Responded to Ben's review

* Cleaned up test stuff

* Fix tests and migrations

* Fix rebase issue

* Resonded to nits

* Fix test

Co-authored-by: Ben Carman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants