diff --git a/plugins/wallet_plugin/se_wallet.cpp b/plugins/wallet_plugin/se_wallet.cpp index 2f9ccfffc06..64c8d0a46ba 100644 --- a/plugins/wallet_plugin/se_wallet.cpp +++ b/plugins/wallet_plugin/se_wallet.cpp @@ -362,6 +362,7 @@ bool se_wallet::import_key(string wif_key) { } string se_wallet::create_key(string key_type) { + EOS_ASSERT(key_type.empty() || key_type == "R1", chain::unsupported_key_type_exception, "Secure Enclave wallet only supports R1 keys"); return (string)my->create(); } diff --git a/plugins/wallet_plugin/yubihsm_wallet.cpp b/plugins/wallet_plugin/yubihsm_wallet.cpp index 0f367457fa0..04378916011 100644 --- a/plugins/wallet_plugin/yubihsm_wallet.cpp +++ b/plugins/wallet_plugin/yubihsm_wallet.cpp @@ -257,6 +257,7 @@ bool yubihsm_wallet::import_key(string wif_key) { } string yubihsm_wallet::create_key(string key_type) { + EOS_ASSERT(key_type.empty() || key_type == "R1", chain::unsupported_key_type_exception, "YubiHSM wallet only supports R1 keys"); return (string)my->create(); }