raiseValueError("The current size of the file is {} bytes, which is not matching the expected value of {} bytes".format(CURRENT_FILE_SIZE,EXPECTED_ED25519_FILE_SIZE))
raiseValueError("The current length of the key is {}, which is not matching the expected length of {}".format(CURRENT_ED25519_BASE64_KEY_SIZE,EXPECTED_ED25519_BASE64_KEY_SIZE))
else:
self._env['ed25519_id']=ed25519_id
def_getAltAuthLines(self,hasbridgeauth=False):
"""Return a combination of AlternateDirAuthority,
and AlternateBridgeAuthority lines for
@@ -872,6 +847,31 @@ class LocalNodeBuilder(NodeBuilder):
classLocalNodeController(NodeController):
def_setEd25519Id(self):
"""Read the ed25519 identity key for this router, and set up the 'ed25519-id' entry in the Environ"""
raiseValueError("The current size of the file is {} bytes, which is not matching the expected value of {} bytes".format(CURRENT_FILE_SIZE,EXPECTED_ED25519_FILE_SIZE))
raiseValueError("The current length of the key is {}, which is not matching the expected length of {}".format(CURRENT_ED25519_BASE64_KEY_SIZE,EXPECTED_ED25519_BASE64_KEY_SIZE))