endorse method

Future<void> endorse({
  1. required String ledgerId,
  2. required Signing signer,
})

Implementation

Future<void> endorse({
  required String ledgerId,
  required security.Signing signer,
}) async {
  final signature = await signer.signPayload(transactions);
  final endorsement = Endorsement()
    ..ledgerId = ledgerId
    ..signature = signature;
  endorsements.add(endorsement);
}