SigningBlock.create constructor

SigningBlock.create({
  1. required List<Uint8List> messages,
  2. required List<Uint8List> signatures,
  3. required List<PublicKey> publicKeys,
  4. int algoId = 0x0201,
})

Implementation

SigningBlock.create({
  required this.messages,
  required this.signatures,
  required this.publicKeys,
  this.algoId = 0x0201,
})  : messageBlocks = messages.map((e) => MessageBlock(e, algoId)).toList(),
      signatureBlocks =
          signatures.map((e) => SignatureBlock(e, algoId)).toList(),
      publicKeyBlocks = publicKeys.map((e) => PublicKeyBlock(e)).toList();