Skip to content

Commit c9a3dd8

Browse files
committed
keystore: compile rust_secp256k1_get_private_key only for testing
Not used in the firmware.
1 parent 021f54e commit c9a3dd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rust/bitbox02-rust/src/keystore.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ pub fn secp256k1_schnorr_sign(
187187
/// # Safety
188188
///
189189
/// keypath pointer has point to a buffer of length `keypath_len` uint32 elements.
190-
#[cfg(feature = "firmware")]
190+
#[cfg(feature = "c-unit-testing")]
191191
#[unsafe(no_mangle)]
192192
pub unsafe extern "C" fn rust_secp256k1_get_private_key(
193193
keypath: *const u32,

0 commit comments

Comments
 (0)