getResult method
Implementation
SigningBlockResultList getResult([bool pubKey = false]) {
if (_messages.length != _signatures.length) {
throw RangeError(
'Message length ${_messages.length} is not equals to '
'signatures length ${_signatures.length}.',
);
}
if (_signatures.length != _algoIds.length) {
throw RangeError(
'Algos length ${_algoIds.length} is not equals to '
'signatures length ${_signatures.length}.',
);
}
final result = <SigningBlockResult>[];
for (int i = 0; i < _messages.length; i += 1) {
result.add(
SigningBlockResult(
algoId: _algoIds[i],
signature: _signatures[i],
message: _messages[i],
publicKey: pubKey == true ? _publicKeys[i] : null,
),
);
}
return result;
}