From 1c6beaa9e920432283b4120896c07ddc9722233c Mon Sep 17 00:00:00 2001 From: Sebastien Guillemot Date: Mon, 7 Feb 2022 15:14:44 +0900 Subject: [PATCH] Expand on comment --- rust/src/witness_builder.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rust/src/witness_builder.rs b/rust/src/witness_builder.rs index 08fee1cf..a65ece50 100644 --- a/rust/src/witness_builder.rs +++ b/rust/src/witness_builder.rs @@ -145,7 +145,9 @@ pub struct TransactionWitnessSetBuilder { plutus_data: HashMap, redeemers: HashMap, - // witnesses that need to be added for the build function to succeed + /// witnesses that need to be added for the build function to succeed + /// this allows checking that witnesses are present at build time (instead of when submitting to a node) + /// This is useful for APIs that can keep track of which witnesses will be required (like transaction builders) required_wits: RequiredWitnessSet, }