cardano-serialization-lib
cardano-serialization-lib copied to clipboard
Add Witness builder
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
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
This is important. Wen?
Would it be possible to add functionality to combine two TransactionWitnessSet?