Skip to content

Commit

Permalink
chore: remove Ins::GetVersionStr (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez authored Sep 5, 2024
1 parent fe729ce commit 050fdea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
15 changes: 7 additions & 8 deletions docs/apdu.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ The messaging format of the app uses the [Block Protocol](/docs/block-protocol.m
All commands use `CLA = 0x00`.
The `P1` and `P2` fields are reserved for future use and must be set to `0` in all messages.

| CLA | INS | COMMAND NAME | DESCRIPTION |
| --- | --- | --------------- | ------------------------------------------------------- |
| 00 | 00 | GET_VERSION | Gets the app version in machine readable format (bytes) |
| 00 | 01 | VERIFY_ADDRESS | Shows the Address on device for a BIP32 path |
| 00 | 02 | GET_PUBKEY | Gets the Public Key and Address for a BIP32 path |
| 00 | 03 | SIGN_TX | Sign Transaction |
| 00 | FE | GET_VERSION_STR | Gets the app version in string |
| 00 | FF | QUIT_APP | Quits the app |
| CLA | INS | COMMAND NAME | DESCRIPTION |
| --- | --- | -------------- | ------------------------------------------------------- |
| 00 | 00 | GET_VERSION | Gets the app version in machine readable format (bytes) |
| 00 | 01 | VERIFY_ADDRESS | Shows the Address on device for a BIP32 path |
| 00 | 02 | GET_PUBKEY | Gets the Public Key and Address for a BIP32 path |
| 00 | 03 | SIGN_TX | Sign Transaction |
| 00 | FF | QUIT_APP | Quits the app |

### GET_VERSION

Expand Down
1 change: 0 additions & 1 deletion rust-app/src/implementation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,6 @@ pub fn handle_apdu_async(io: HostIO, ins: Ins, settings: Settings) -> APDUsFutur
trace!("Handling sign");
NoinlineFut(sign_apdu(io, settings)).await;
}
Ins::GetVersionStr => {}
Ins::Exit => ledger_device_sdk::exit_app(0),
}
}
Expand Down
1 change: 0 additions & 1 deletion rust-app/src/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ pub enum Ins {
VerifyAddress = 1,
GetPubkey = 2,
Sign = 3,
GetVersionStr = 0xfe,
Exit = 0xff,
}

Expand Down

0 comments on commit 050fdea

Please sign in to comment.