diff --git a/analysis_options.yaml b/analysis_options.yaml index 32dccdb..c20153f 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -5,52 +5,52 @@ include: package:flutter_lints/flutter.yaml # Uncomment the following section to specify additional rules. linter: rules: - - always_declare_return_types - - annotate_overrides - - avoid_init_to_null - - avoid_null_checks_in_equality_operators - - avoid_relative_lib_imports - - avoid_return_types_on_setters - - avoid_shadowing_type_parameters - - avoid_single_cascade_in_expression_statements - - avoid_types_as_parameter_names - - await_only_futures - - camel_case_extensions - - curly_braces_in_flow_control_structures - - empty_catches - - empty_constructor_bodies - - library_names - - library_prefixes - - no_duplicate_case_values - - null_closures - - omit_local_variable_types - - prefer_adjacent_string_concatenation - - prefer_collection_literals - - prefer_conditional_assignment - - prefer_contains - - prefer_equal_for_default_values - - prefer_final_fields - - prefer_for_elements_to_map_fromIterable - - prefer_generic_function_type_aliases - - prefer_if_null_operators - - prefer_inlined_adds - - prefer_is_empty - - prefer_is_not_empty - - prefer_iterable_whereType - - prefer_single_quotes - - prefer_spread_collections - - recursive_getters - - slash_for_doc_comments - - sort_child_properties_last - - type_init_formals - - unawaited_futures - - unnecessary_brace_in_string_interps - - unnecessary_const - - unnecessary_getters_setters - - unnecessary_new - - unnecessary_null_in_if_null_operators - - unnecessary_this - - unrelated_type_equality_checks - - use_function_type_syntax_for_parameters - - use_rethrow_when_possible - - valid_regexps \ No newline at end of file + # - always_declare_return_types + # - annotate_overrides + # - avoid_init_to_null + # - avoid_null_checks_in_equality_operators + # - avoid_relative_lib_imports + # - avoid_return_types_on_setters + # - avoid_shadowing_type_parameters + # - avoid_single_cascade_in_expression_statements + # - avoid_types_as_parameter_names + # - await_only_futures + # - camel_case_extensions + # - curly_braces_in_flow_control_structures + # - empty_catches + # - empty_constructor_bodies + # - library_names + # - library_prefixes + # - no_duplicate_case_values + # - null_closures + # - omit_local_variable_types + # - prefer_adjacent_string_concatenation + # - prefer_collection_literals + # - prefer_conditional_assignment + # - prefer_contains + # - prefer_equal_for_default_values + # - prefer_final_fields + # - prefer_for_elements_to_map_fromIterable + # - prefer_generic_function_type_aliases + # - prefer_if_null_operators + # - prefer_inlined_adds + # - prefer_is_empty + # - prefer_is_not_empty + # - prefer_iterable_whereType + # - prefer_single_quotes + # - prefer_spread_collections + # - recursive_getters + # - slash_for_doc_comments + # - sort_child_properties_last + # - type_init_formals + # - unawaited_futures + # - unnecessary_brace_in_string_interps + # - unnecessary_const + # - unnecessary_getters_setters + # - unnecessary_new + # - unnecessary_null_in_if_null_operators + # - unnecessary_this + # - unrelated_type_equality_checks + # - use_function_type_syntax_for_parameters + # - use_rethrow_when_possible + # - valid_regexps \ No newline at end of file diff --git a/lib/src/crypto/crypto.dart b/lib/src/crypto/crypto.dart index 79079aa..c7fd1bc 100644 --- a/lib/src/crypto/crypto.dart +++ b/lib/src/crypto/crypto.dart @@ -9,9 +9,9 @@ export 'keypair/ec_public.dart'; /// Function: taggedHash /// Description: Computes a tagged hash of the input data with a provided tag. /// Input: -/// - List data - The data to be hashed. +/// - `List` data - The data to be hashed. /// - String tag - A unique tag to differentiate the hash. -/// Output: List - The resulting tagged hash. +/// Output: `List` - The resulting tagged hash. /// Note: This function combines the provided tag with the input data to create a unique /// hash by applying a double SHA-256 hash. List taggedHash(List data, String tag) { diff --git a/lib/src/transaction_builder/forked_transaction_builder.dart b/lib/src/transaction_builder/forked_transaction_builder.dart index 0980e9b..50fb343 100644 --- a/lib/src/transaction_builder/forked_transaction_builder.dart +++ b/lib/src/transaction_builder/forked_transaction_builder.dart @@ -168,7 +168,7 @@ class ForkedTransactionBuilder implements BasedBitcoinTransacationBuilder { /// - tapRootPubKeys: A List of of Script representing taproot public keys for P2TR inputs (ignored for non-P2TR inputs). // /// Returns: - /// - List: representing the transaction digest to be used for signing the input. + /// - `List`: representing the transaction digest to be used for signing the input. List _generateTransactionDigest( {required Script scriptPubKeys, required int input, @@ -193,7 +193,7 @@ class ForkedTransactionBuilder implements BasedBitcoinTransacationBuilder { /// - utx: A UtxoWithAddress instance representing the unspent transaction output (UTXO) and its owner details. // /// Returns: - /// - List: A List of strings representing the script signature for the P2WSH or P2SH input. + /// - `List`: A List of strings representing the script signature for the P2WSH or P2SH input. List _buildMiltisigUnlockingScript( List signedDigest, UtxoWithAddress utx) { /// The constructed script signature consists of the signed digest elements followed by diff --git a/lib/src/transaction_builder/transaction_builder.dart b/lib/src/transaction_builder/transaction_builder.dart index 57aafa8..eef8846 100644 --- a/lib/src/transaction_builder/transaction_builder.dart +++ b/lib/src/transaction_builder/transaction_builder.dart @@ -257,7 +257,7 @@ class BitcoinTransactionBuilder implements BasedBitcoinTransacationBuilder { /// - tapRootPubKeys: A List of of Script representing taproot public keys for P2TR inputs (ignored for non-P2TR inputs). // /// Returns: - /// - List: representing the transaction digest to be used for signing the input. + /// - `List`: representing the transaction digest to be used for signing the input. List _generateTransactionDigest( Script scriptPubKeys, int input, @@ -289,7 +289,7 @@ class BitcoinTransactionBuilder implements BasedBitcoinTransacationBuilder { /// - utx: A UtxoWithAddress instance representing the unspent transaction output (UTXO) and its owner details. // /// Returns: - /// - List: A List of strings representing the script signature for the P2WSH or P2SH input. + /// - `List`: A List of strings representing the script signature for the P2WSH or P2SH input. List _buildMiltisigUnlockingScript( List signedDigest, UtxoWithAddress utx) { /// The constructed script signature consists of the signed digest elements followed by @@ -306,7 +306,7 @@ class BitcoinTransactionBuilder implements BasedBitcoinTransacationBuilder { /// - utxo: A UtxoWithAddress instance representing the unspent transaction output (UTXO) and its owner details. // /// Returns: - /// - List: A List of strings representing the script signature for the P2SH SegWit input. + /// - `List`: A List of strings representing the script signature for the P2SH SegWit input. List _buildNestedSegwitReedemScript(UtxoWithAddress utxo) { if (utxo.isMultiSig()) { switch (utxo.utxo.scriptType) {