parameters: (query, private_key)
return_statement: return query
docstring: Add a signature to a query. Source query will be modified
          :param query: the query to be signed
          :param private_key: hex string of private key to sign the query
          :return: the modified query
docstring_summary: Add a signature to a query. Source query will be modified
          :param query: the query to be signed
          :param private_key: hex string of private key to sign the query
          :return: the modified query
docstring_tokens: Add a signature to a query . Source query will be modified : param query : the query to be signed : param private_key : hex string of private key to sign the query : return : the modified query
function: def sign_query(query, private_key):
          """
          Add a signature to a query. Source query will be modified
          :param query: the query to be signed
          :param private_key: hex string of private key to sign the query
          :return: the modified query
          """
          signature = IrohaCrypto._signature(query, private_key)
          query.signature.CopyFrom(signature)
          return query
function_tokens: def sign_query ( query , private_key ) : signature = IrohaCrypto . _signature ( query , private_key ) query . signature . CopyFrom ( signature ) return query