code: def ed25519_private_key_from_string(string):
      
      try:
          return Ed25519PrivateKey.from_private_bytes(
              base64.b64decode(string)
          )
      except (UnsupportedAlgorithm, Base64Error) as exc:
          raise ScriptWorkerEd25519Error("Can't create Ed25519PrivateKey: {}!".format(str(exc)))
docs: Create an ed25519 private key from ``string``, which is a seed.
  
      Args:
          string (str): the string to use as a seed.
  
      Returns:
          Ed25519PrivateKey: the private key