forked from Zondax/ledger-statemine
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from Zondax/main
Upgrade Statemine
- Loading branch information
Showing
50 changed files
with
12,825 additions
and
7,323 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# This is the `transaction_version` field of `Runtime` | ||
APPVERSION_M=4 | ||
APPVERSION_M=5 | ||
# This is the `spec_version` field of `Runtime` | ||
APPVERSION_N=601 | ||
APPVERSION_N=700 | ||
# This is the patch version of this release | ||
APPVERSION_P=0 |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/******************************************************************************* | ||
* (c) 2019 - 2022 Zondax GmbH | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
********************************************************************************/ | ||
#pragma once | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#define COIN_ADDR_TYPE 2 | ||
#define CLA 0x97 | ||
|
||
#define HDPATH_LEN_DEFAULT 5 | ||
#define HDPATH_0_DEFAULT (0x80000000 | 0x2c) | ||
#define HDPATH_1_DEFAULT (0x80000000 | 0x1b2) | ||
#define HDPATH_1_RECOVERY (0x80000000 | 0x1b2) | ||
|
||
#define HDPATH_2_DEFAULT (0x80000000u | 0u) | ||
#define HDPATH_3_DEFAULT (0u) | ||
#define HDPATH_4_DEFAULT (0u) | ||
|
||
#define SK_LEN_25519 64u | ||
#define SCALAR_LEN_ED25519 32u | ||
#define SIG_PLUS_TYPE_LEN 65u | ||
|
||
#define PK_LEN_25519 32u | ||
#define MAX_SIGN_SIZE 256u | ||
#define BLAKE2B_DIGEST_SIZE 32u | ||
|
||
typedef enum { | ||
key_ed25519 = 0, | ||
|
||
#if defined(SUPPORT_SR25519) | ||
key_sr25519 = 1 | ||
#endif | ||
|
||
} key_kind_e; | ||
|
||
// Coin Specific | ||
#define PK_ADDRESS_TYPE COIN_ADDR_TYPE | ||
#define SUPPORTED_TX_VERSION_CURRENT LEDGER_MAJOR_VERSION | ||
#define SUPPORTED_TX_VERSION_PREVIOUS (LEDGER_MAJOR_VERSION - 1) | ||
#define SUPPORTED_SPEC_VERSION (LEDGER_MINOR_VERSION + 0) | ||
#define SUPPORTED_MINIMUM_SPEC_VERSION 600 | ||
|
||
#define COIN_AMOUNT_DECIMAL_PLACES 12 | ||
|
||
#define COIN_GENESIS_HASH "48239ef607d7928874027a43a67689209727dfb3d3dc5e5b03a39bdc2eda771a" | ||
#define COIN_NAME "Statemine" | ||
#define COIN_TICKER "KSM " | ||
|
||
#define COIN_SECRET_REQUIRED_CLICKS 0 | ||
|
||
#define MENU_MAIN_APP_LINE1 "Statemine" | ||
#define MENU_MAIN_APP_LINE2 "Ready" | ||
#define MENU_MAIN_APP_LINE2_SECRET "KSM RECOVERY" | ||
#define APPVERSION_LINE1 "Statemine" | ||
#define APPVERSION_LINE2 "v" APPVERSION | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif |
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
File renamed without changes.
File renamed without changes.
Oops, something went wrong.