Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: adjust dkg keys nvm flash size to fix pic issues #88

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions app/src/app_ui/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ use crate::nvm::settings::Settings;
use crate::Instruction;

#[cfg(not(any(target_os = "stax", target_os = "flex")))]
#[inline(never)]
pub fn ui_menu_main(comm: &mut Comm) -> Event<Instruction> {
const APP_ICON: Glyph = Glyph::from_include(include_gif!("nanox_icon.gif"));

Expand All @@ -58,6 +59,7 @@ pub fn ui_menu_main(comm: &mut Comm) -> Event<Instruction> {
false => "Disabled",
};

app_version = String::from("x");
let pages = [
&Page::from((_first_page_label, &APP_ICON)),
&Page::from((["Expert Mode", expert_mode_label], true, true)),
Expand All @@ -83,6 +85,7 @@ pub fn ui_menu_main(comm: &mut Comm) -> Event<Instruction> {
}

#[cfg(any(target_os = "stax", target_os = "flex"))]
#[inline(never)]
pub fn ui_menu_main(_: &mut Comm) -> NbglHomeAndSettings {
#[cfg(target_os = "stax")]
const APP_ICON: NbglGlyph = NbglGlyph::from_include(include_gif!("stax_icon.gif", NBGL));
Expand Down
2 changes: 1 addition & 1 deletion app/src/nvm/dkg_keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use ledger_device_sdk::NVMData;

// This is necessary to store the object in NVM and not in RAM
// The max data saved here is for 4 participants, which sends 1024 bytes.
pub const DKG_KEYS_MAX_SIZE: usize = 3000;
pub const DKG_KEYS_MAX_SIZE: usize = 1300;

// Fix positions with u8 values
const DKG_STATUS: usize = 0;
Expand Down
Loading