validateAuthor method Null safety

bool validateAuthor(
  1. TransactionModel transaction,
  2. RsaPublicKey pubKey
)

Validates the author of the TransactionModel by calling Rsa.verify with its TransactionModel.signature.

Implementation

static bool validateAuthor(
        TransactionModel transaction, RsaPublicKey pubKey) =>
    Rsa.verify(pubKey, transaction.serialize(includeSignature: false),
        transaction.signature!);