pub fn validate_sigs(
serder: &SerderKERI,
sigers: Vec<Siger>,
verfers: &[Verfer],
tholder: &Tholder,
) -> Result<(Vec<Siger>, bool), KERIError>Expand description
Attaches indexed signatures from sigers and/or cigars and/or wigers to KERI message data from serder
§Arguments
serder- SerderKERI instance containing the eventsigers- Optional list of Siger instances to create indexed signaturesseal- Optional seal:- If SealEvent: Use attachment group code TransIdxSigGroups plus attach triple pre+snu+dig made from (i,s,d) of seal plus ControllerIdxSigs plus attached indexed sigs in sigers
- If SealLast: Use attachment group code TransLastIdxSigGroups plus attach triple pre made from (i) of seal plus ControllerIdxSigs plus attached indexed sigs in sigers
- Else: Use ControllerIdxSigs plus attached indexed sigs in sigers
wigers- Optional list of Siger instances of witness index signaturescigars- Optional list of Cigars instances of non-transferable non indexed signatures from which to form receipt couples. Each cigar.verfer.qb64 is pre of receiptor and cigar.qb64 is signaturepipelined- If true, prepend pipelining count code to attachemnts If false, do not prepend pipelining count code
§Returns
Bytearray containing the KERI event message
§Errors
Returns an error if there are no signatures attached or if there are invalid attachment sizes