Skip to content

Commit

Permalink
feat: imk support mnemonic verification feature (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoguang1010 authored Sep 4, 2024
1 parent 2be9194 commit ade18a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions imkey-core/ikc-common/src/apdu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,7 @@ impl ApduCheck {
"F080" => Err(ApduError::ImkeyInMenuPage.into()),
"F081" => Err(ApduError::ImkeyPinNotVerified.into()),
"6F01" => Err(ApduError::ImkeyBluetoothChannelError.into()),
"6943" => Err(ApduError::ImkeyMnemonicCheckFail.into()),
_ => Err(anyhow!("imkey_command_execute_fail_{}", response_data)), //Err(ApduError::ImkeyCommandExecuteFail.into())
}
}
Expand Down
2 changes: 2 additions & 0 deletions imkey-core/ikc-common/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ pub enum ApduError {
ImkeyInMenuPage,
#[error("imkey_pin_not_verified")]
ImkeyPinNotVerified,
#[error("imkey_mnemonic_check_fail")]
ImkeyMnemonicCheckFail,
}

#[derive(Error, Debug, PartialOrd, PartialEq)]
Expand Down

0 comments on commit ade18a2

Please sign in to comment.