Skip to content

Add Witness builder#307

Open
SebastienGllmt wants to merge 17 commits intomasterfrom
witness-builder
Open

Add Witness builder#307
SebastienGllmt wants to merge 17 commits intomasterfrom
witness-builder

Conversation

@SebastienGllmt
Copy link
Copy Markdown
Contributor

The problem with TransactionWitnessSet is that at the protocol level it should be a set, but at the CDDL level it's just a list. This means it's up to individual implementations to de-duplication which is not ideal.

This PR adds a TransactionWitnessSetBuilder which handles the deduplication for you. It's a first step to #37 and can also help with #273

@SebastienGllmt
Copy link
Copy Markdown
Contributor Author

SebastienGllmt commented Dec 25, 2021

I went ahead and also added a RequiredWitnessSet so that the tx builder can pass information about which witnesses are required. I didn't hook it up to the tx builder since probably it would conflict with #273 too much

@zuzunker zuzunker added this to the 10.0.0 milestone Feb 1, 2022
# Conflicts:
#	rust/pkg/cardano_serialization_lib.js.flow
#	rust/src/plutus.rs
Copy link
Copy Markdown
Member

@zuzunker zuzunker left a comment

Choose a reason for hiding this comment

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

/check

@zuzunker zuzunker modified the milestones: 10.0.0, 10.1.0 Feb 6, 2022
@zuzunker zuzunker requested a review from lisicky May 15, 2022 10:22
@zuzunker zuzunker modified the milestones: 10.1.0, 10.2.0 May 19, 2022
zuzunker added 2 commits July 9, 2022 22:20
# Conflicts:
#	rust/pkg/cardano_serialization_lib.js.flow
#	rust/src/lib.rs
# Conflicts:
#	rust/src/crypto.rs
#	rust/src/lib.rs
#	rust/src/plutus.rs
#	rust/src/utils.rs
@zuzunker zuzunker changed the base branch from master to babbage July 9, 2022 19:31
@zuzunker zuzunker assigned zuzunker and unassigned SebastienGllmt Jul 9, 2022
Base automatically changed from babbage to master July 27, 2022 13:15
@zuzunker zuzunker modified the milestones: 11.1.0, 11.2.0 Sep 12, 2022
@nicolasayotte
Copy link
Copy Markdown

This is important. Wen?

@lisicky lisicky modified the milestones: 11.2.0, 11.3.0 Dec 1, 2022
@lisicky lisicky removed this from the 11.3.0 milestone Jan 27, 2023
@jonathangenlambda
Copy link
Copy Markdown

Would it be possible to add functionality to combine two TransactionWitnessSet?

@stackchain stackchain modified the milestone: 11.4.0 Mar 29, 2023
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.

7 participants