Skip to content

Commit

Permalink
V5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtnetwork committed Jan 2, 2025
1 parent 78719a8 commit b619640
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 56 deletions.
98 changes: 49 additions & 49 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
# - 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
4 changes: 2 additions & 2 deletions lib/src/crypto/crypto.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<int> data - The data to be hashed.
/// - `List<int>` data - The data to be hashed.
/// - String tag - A unique tag to differentiate the hash.
/// Output: List<int> - The resulting tagged hash.
/// Output: `List<int>` - 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<int> taggedHash(List<int> data, String tag) {
Expand Down
4 changes: 2 additions & 2 deletions lib/src/transaction_builder/forked_transaction_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>: representing the transaction digest to be used for signing the input.
/// - `List<int>`: representing the transaction digest to be used for signing the input.
List<int> _generateTransactionDigest(
{required Script scriptPubKeys,
required int input,
Expand All @@ -193,7 +193,7 @@ class ForkedTransactionBuilder implements BasedBitcoinTransacationBuilder {
/// - utx: A UtxoWithAddress instance representing the unspent transaction output (UTXO) and its owner details.
//
/// Returns:
/// - List<String>: A List of strings representing the script signature for the P2WSH or P2SH input.
/// - `List<String>`: A List of strings representing the script signature for the P2WSH or P2SH input.
List<String> _buildMiltisigUnlockingScript(
List<String> signedDigest, UtxoWithAddress utx) {
/// The constructed script signature consists of the signed digest elements followed by
Expand Down
6 changes: 3 additions & 3 deletions lib/src/transaction_builder/transaction_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>: representing the transaction digest to be used for signing the input.
/// - `List<int>`: representing the transaction digest to be used for signing the input.
List<int> _generateTransactionDigest(
Script scriptPubKeys,
int input,
Expand Down Expand Up @@ -289,7 +289,7 @@ class BitcoinTransactionBuilder implements BasedBitcoinTransacationBuilder {
/// - utx: A UtxoWithAddress instance representing the unspent transaction output (UTXO) and its owner details.
//
/// Returns:
/// - List<String>: A List of strings representing the script signature for the P2WSH or P2SH input.
/// - `List<String>`: A List of strings representing the script signature for the P2WSH or P2SH input.
List<String> _buildMiltisigUnlockingScript(
List<String> signedDigest, UtxoWithAddress utx) {
/// The constructed script signature consists of the signed digest elements followed by
Expand All @@ -306,7 +306,7 @@ class BitcoinTransactionBuilder implements BasedBitcoinTransacationBuilder {
/// - utxo: A UtxoWithAddress instance representing the unspent transaction output (UTXO) and its owner details.
//
/// Returns:
/// - List<string>: A List of strings representing the script signature for the P2SH SegWit input.
/// - `List<string>`: A List of strings representing the script signature for the P2SH SegWit input.
List<String> _buildNestedSegwitReedemScript(UtxoWithAddress utxo) {
if (utxo.isMultiSig()) {
switch (utxo.utxo.scriptType) {
Expand Down

0 comments on commit b619640

Please sign in to comment.