additionalSignedExtension method

  1. @override
(String, bool) additionalSignedExtension(
  1. String extension,
  2. Map info
)
override

Implementation

@override
(String, bool) additionalSignedExtension(String extension, Map info) {
  switch (extension) {
    case 'CheckMortality':
      return (info['blockHash'], true);
    case 'CheckSpecVersion':
      return (info['specVersion'], true);
    case 'CheckTxVersion':
      return (info['transactionVersion'], true);
    case 'CheckGenesis':
      return (info['genesisHash'], true);
    case 'CheckMetadataHash':
      return (info['metadataHash'], true);
    default:
      return ('', false);
  }
}