getResult method

SigningBlockResultList getResult([
  1. bool pubKey = false
])

Implementation

SigningBlockResultList getResult([bool pubKey = false]) {
  if (_messages.length != _signatures.length) {
    throw 'Messages Length:${_messages.length}, is not matched with Signatures length: ${_signatures.length}';
  }
  if (_signatures.length != _algoIds.length) {
    throw 'Algos Length:${_algoIds.length}, is not matched with Signatures length: ${_signatures.length}';
  }
  var result = <SigningBlockResult>[];
  for (var 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;
}