areSignaturesReady method
Checks if all signatures of the transaction are ready.
Implementation
bool areSignaturesReady() {
final signerPubkeys =
message.accountKeys.sublist(0, message.header.numRequiredSignatures);
if (signerPubkeys.isEmpty) return false;
for (int i = 0; i < signerPubkeys.length; i++) {
final signer = signerPubkeys[i].toPublicKey();
final signerSignature = _signatures[i];
if (!signer.verify(
message: serializeMessage(), signature: signerSignature)) {
return false;
}
}
return true;
}