From 3cf41789dacd3c00cd414caa98bab48fc2c706f0 Mon Sep 17 00:00:00 2001 From: GroM Date: Mon, 4 Mar 2024 14:19:48 +0100 Subject: [PATCH 1/3] Make hash modules public --- ledger_device_sdk/src/hash.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ledger_device_sdk/src/hash.rs b/ledger_device_sdk/src/hash.rs index a5f98d70..d26ca87c 100644 --- a/ledger_device_sdk/src/hash.rs +++ b/ledger_device_sdk/src/hash.rs @@ -3,10 +3,10 @@ use ledger_secure_sdk_sys::{ CX_INVALID_PARAMETER, CX_LAST, CX_OK, }; -mod blake2; -mod ripemd; -mod sha2; -mod sha3; +pub mod blake2; +pub mod ripemd; +pub mod sha2; +pub mod sha3; #[derive(Copy, Clone, PartialEq, Eq, Debug)] pub enum HashError { From 883252ad7948d1f5d973b6b29bd1a40ffce1cca3 Mon Sep 17 00:00:00 2001 From: GroM Date: Mon, 4 Mar 2024 14:20:45 +0100 Subject: [PATCH 2/3] Make ChainCode value field public --- ledger_device_sdk/src/ecc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ledger_device_sdk/src/ecc.rs b/ledger_device_sdk/src/ecc.rs index 5e2696d6..1d4b3188 100644 --- a/ledger_device_sdk/src/ecc.rs +++ b/ledger_device_sdk/src/ecc.rs @@ -449,7 +449,7 @@ impl Drop for Secret { #[repr(C)] #[derive(Default)] pub struct ChainCode { - value: [u8; 32], + pub value: [u8; 32], } /// Fill the key buffer `ECPrivateKey<_,_>.key` with bytes From f75ff75e90f652dae9d086a80fe40c9356f2cbdd Mon Sep 17 00:00:00 2001 From: GroM Date: Mon, 4 Mar 2024 14:21:27 +0100 Subject: [PATCH 3/3] [ledger_device_sdk] Bump version 1.7.1 --- Cargo.lock | 2 +- ledger_device_sdk/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 36430527..4ade7b69 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -296,7 +296,7 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "ledger_device_sdk" -version = "1.6.0" +version = "1.7.1" dependencies = [ "include_gif", "ledger_device_sdk", diff --git a/ledger_device_sdk/Cargo.toml b/ledger_device_sdk/Cargo.toml index 0b46d7e0..1a85585f 100644 --- a/ledger_device_sdk/Cargo.toml +++ b/ledger_device_sdk/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ledger_device_sdk" -version = "1.7.0" +version = "1.7.1" authors = ["yhql", "yogh333"] edition = "2021" license.workspace = true