mirror of
https://github.com/google/bumble.git
synced 2026-05-08 03:58:01 +00:00
address: add public information to the stringified value
This affect the way security keys are stored. For instance the same key can be used both as public and random, and it need to be stored separately one from each other.
This commit is contained in:
@@ -1753,7 +1753,10 @@ class Address:
|
||||
'''
|
||||
String representation of the address, MSB first
|
||||
'''
|
||||
return ':'.join([f'{x:02X}' for x in reversed(self.address_bytes)])
|
||||
str = ':'.join([f'{x:02X}' for x in reversed(self.address_bytes)])
|
||||
if not self.is_public:
|
||||
return str
|
||||
return str + '/P'
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user