From ae356c1aa11919546049091b2c0937c8cfeaec36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thoralf=20M=C3=BCller?= Date: Wed, 12 Jun 2024 11:03:45 +0200 Subject: [PATCH] feat!: Don't prepend signature scheme flag before public key --- rust-app/src/implementation.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rust-app/src/implementation.rs b/rust-app/src/implementation.rs index 70c3429..1c68799 100644 --- a/rust-app/src/implementation.rs +++ b/rust-app/src/implementation.rs @@ -27,8 +27,7 @@ impl Address> for key: &ledger_device_sdk::ecc::ECPublicKey<65, 'E'>, ) -> Result { let key_bytes = ed25519_public_key_bytes(key); - let mut tmp = ArrayVec::::new(); - let _ = tmp.try_push(0); // SIGNATURE_SCHEME_TO_FLAG['ED25519'] + let mut tmp = ArrayVec::::new(); let _ = tmp.try_extend_from_slice(key_bytes); let mut hasher: Blake2b = Hasher::new(); hasher.update(&tmp);