Skip to content

Commit be61f59

Browse files
committed
Merge remote-tracking branch 'upstream/main' into pending-support
2 parents f72366c + 8353047 commit be61f59

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ mod utils;
55

66
use core::str::from_utf8;
77
use nanos_sdk::buttons::ButtonEvent;
8-
use nanos_sdk::ecc::Secp256k1;
9-
use nanos_sdk::ecc::SeedDerive;
8+
use nanos_sdk::ecc::{Secp256k1, SeedDerive};
109
use nanos_sdk::io;
1110
use nanos_sdk::io::SyscallError;
1211
use nanos_ui::ui;
@@ -60,7 +59,7 @@ fn menu_example() {
6059
/// This is the UI flow for signing, composed of a scroller
6160
/// to read the incoming message, a panel that requests user
6261
/// validation, and an exit message.
63-
fn sign_ui(message: &[u8]) -> Result<Option<([u8; 72], u32)>, SyscallError> {
62+
fn sign_ui(message: &[u8]) -> Result<Option<([u8; 72], u32, u32)>, SyscallError> {
6463
ui::popup("Message review");
6564

6665
{
@@ -159,7 +158,7 @@ fn handle_apdu(comm: &mut io::Comm, ins: Ins) -> Result<(), Reply> {
159158
}
160159
Ins::Sign => {
161160
let out = sign_ui(comm.get_data()?)?;
162-
if let Some((signature_buf, length)) = out {
161+
if let Some((signature_buf, length, _)) = out {
163162
comm.append(&signature_buf[..length as usize])
164163
}
165164
}

0 commit comments

Comments
 (0)