feat: Update address calculation to use first byte of public key for MeshCore

This commit is contained in:
Lloyd
2026-01-07 21:46:57 +00:00
parent 1bd3b6c382
commit fad5958d9c
+2 -2
View File
@@ -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()