mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-28 08:48:53 +00:00
10 lines
226 B
Python
10 lines
226 B
Python
|
|
|
|
from foolscap import base32
|
|
def nodeid_b2a(nodeid):
|
|
# we display nodeids using the same base32 alphabet that Foolscap uses
|
|
return base32.encode(nodeid)
|
|
|
|
def shortnodeid_b2a(nodeid):
|
|
return nodeid_b2a(nodeid)[:8]
|