@@ -409,13 +409,13 @@ where
409409 /// Create a new `SigningPackage` with a set of signing participants.
410410 pub fn new_with_participants_groups (
411411 signing_commitments : BTreeMap < Identifier < C > , round1:: SigningCommitments < C > > ,
412- signing_participants_groups : Vec < BTreeSet < Identifier < C > > > ,
412+ signing_participants_groups : Option < Vec < BTreeSet < Identifier < C > > > > ,
413413 message : & [ u8 ] ,
414414 ) -> SigningPackage < C > {
415415 SigningPackage {
416416 header : Header :: default ( ) ,
417417 signing_commitments,
418- signing_participants_groups : Some ( signing_participants_groups) ,
418+ signing_participants_groups : signing_participants_groups,
419419 message : message. to_vec ( ) ,
420420 adaptor : None ,
421421 }
@@ -424,16 +424,16 @@ where
424424 /// Create a new `SigningPackage` with a set of signing participants and an adaptor.
425425 pub fn new_with_adaptor (
426426 signing_commitments : BTreeMap < Identifier < C > , round1:: SigningCommitments < C > > ,
427- signing_participants_groups : Vec < BTreeSet < Identifier < C > > > ,
427+ signing_participants_groups : Option < Vec < BTreeSet < Identifier < C > > > > ,
428428 message : & [ u8 ] ,
429- adaptor : VerifyingKey < C > ,
429+ adaptor : Option < VerifyingKey < C > > ,
430430 ) -> SigningPackage < C > {
431431 SigningPackage {
432432 header : Header :: default ( ) ,
433433 signing_commitments,
434- signing_participants_groups : Some ( signing_participants_groups) ,
434+ signing_participants_groups : signing_participants_groups,
435435 message : message. to_vec ( ) ,
436- adaptor : Some ( adaptor) ,
436+ adaptor : adaptor,
437437 }
438438 }
439439
0 commit comments