mirror of
https://github.com/pyMC-dev/pyMC_Repeater.git
synced 2026-08-06 08:53:46 +02:00
feat: Update address calculation to use first byte of public key for MeshCore
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user