-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The previous transaction signing system used SIGN_MODE_AMINO_JSON, which is deprecated and no longer supported on the SEKAI side. This branch introduces a new way to sign transactions that use SIGN_MODE_DIRECT mode. List of changes: - imported "cryptography_utils" package which contains crypto-algorithms required to build and sign Cosmos transactions - removed classes from "infra/dto/api_kira/broadcast/request/transaction/components" as they are included in the “cryptography_utils” package and are no longer needed on the miro side - modified classes from "infra/dto/shared/messages" to extend "ProtobufAny" class from "cryptography_utils" package and define protobuf serialization for Cosmos messages - replaced Uint8List private key in wallet.dart with ECPrivateKey from "cryptography_utils" package to simplify accessing private key for transaction signing - removed signature_utils.dart and sign() method from tx_utils.dart, as now signing functionality is handled by the external package - created new sign() method in unsigned_tx_model.dart, which calls proper signing method from "cryptography_utils" package - removed Wallet.fromKeyfileData() constructor from wallet.dart as it wasn't used anywhere but needed improvement after changes - adjusted tests and classes where updated classes were used
- Loading branch information
Showing
62 changed files
with
987 additions
and
1,615 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 0 additions & 31 deletions
31
lib/infra/dto/api_kira/broadcast/request/transaction/components/auth_info.dart
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
lib/infra/dto/api_kira/broadcast/request/transaction/components/mode_info/mode_info.dart
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
lib/infra/dto/api_kira/broadcast/request/transaction/components/mode_info/sign_mode.dart
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
...fra/dto/api_kira/broadcast/request/transaction/components/mode_info/single_mode_info.dart
This file was deleted.
Oops, something went wrong.
36 changes: 0 additions & 36 deletions
36
lib/infra/dto/api_kira/broadcast/request/transaction/components/signer_info.dart
This file was deleted.
Oops, something went wrong.
51 changes: 0 additions & 51 deletions
51
lib/infra/dto/api_kira/broadcast/request/transaction/components/tx_body.dart
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
lib/infra/dto/api_kira/broadcast/request/transaction/components/tx_fee.dart
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
lib/infra/dto/api_kira/broadcast/request/transaction/components/tx_pub_key.dart
This file was deleted.
Oops, something went wrong.
72 changes: 0 additions & 72 deletions
72
lib/infra/dto/api_kira/broadcast/request/transaction/std_sign_doc.dart
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.