validateAuthor method Null safety
- TransactionModel transaction,
- 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!);