From fad5958d9c3c2b91208bb6536c2399295278fdcd Mon Sep 17 00:00:00 2001 From: Lloyd Date: Wed, 7 Jan 2026 21:46:57 +0000 Subject: [PATCH] feat: Update address calculation to use first byte of public key for MeshCore --- convert_firmware_key.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/convert_firmware_key.sh b/convert_firmware_key.sh index 681bb95..bd918e6 100755 --- a/convert_firmware_key.sh +++ b/convert_firmware_key.sh @@ -85,8 +85,8 @@ try: print(f"Derived public key: {pubkey.hex()}") - # Calculate address (first byte of SHA256 of pubkey) - address = hashlib.sha256(pubkey).digest()[0] + # Calculate address (MeshCore uses first byte of pubkey directly, not SHA256) + address = pubkey[0] print(f"Node address: 0x{address:02x}") print()