diff --git a/src/api.rs b/src/api.rs index 8652e1e..1380e7e 100644 --- a/src/api.rs +++ b/src/api.rs @@ -270,22 +270,6 @@ pub fn get_member() -> ApiResult { Ok(us) } -#[wasm_bindgen] -pub fn get_new_keypair() -> NewKey { - let secp = Secp256k1::new(); - let mut rng = thread_rng(); - let keypair = Keypair::new(&secp, &mut rng); - - let secret_hex = keypair.secret_bytes().to_lower_hex_string(); - let (xonly, parity) = keypair.x_only_public_key(); - - NewKey { - private_key: secret_hex, - x_only_public_key: xonly.to_string(), - key_parity: if parity == Parity::Even { true } else { false } - } -} - #[wasm_bindgen] pub fn restore_device(device_str: String) -> ApiResult<()> { let device: Device = serde_json::from_str(&device_str)?;