def signature_action(self):
        ethereum_setting = {}
        date_of_synchronization = dt.now()
        ethereum_setting = {}
        ethereum_setting = self.get_ethereum_addres()
        ethereum_setting = ethereum_setting[0]
        web3 = Web3(HTTPProvider(ethereum_setting['address_node']))
        abi_json = ethereum_setting['ethereum_interface']
        ethereum_contract_address = ethereum_setting['ethereum_address']
        contract =  web3.eth.contract(abi = json.loads(abi_json), address=ethereum_contract_address)
        hash_of_synchronaze = '"'+base58.b58encode(str(date_of_synchronization))+'"'
        print hash_of_synchronaze
        md5 = self.getDocumentMD5()
        md5_for_solidity = '"'+md5[0]+'"'
        TransactionHashEthereum = contract.transact().setDocumentHash(str(hash_of_synchronaze),str(md5_for_solidity))
        self.signature_timestamp = str(date_of_synchronization)
        self.signature_hash = TransactionHashEthereum
        self.signature_status = True
        self.env['journal.signature'].create({'name':self.name,
                                              'checksum':md5[0],
                                              'hash_of_signature':TransactionHashEthereum,
                                              'timestamp_of_document':self.signature_timestamp,
                                              'date_of_signature':date_of_synchronization})
        root = etree.Element("data")
        sale_order_name = etree.SubElement(root,'name')
        sale_order_name.text=self.name
        sale_order_hash = etree.SubElement(root,'transaction_hash')
        sale_order_hash.text=TransactionHashEthereum
        sale_order_md5 = etree.SubElement(root,'md5')
        sale_order_md5.text=md5[0]
        xml_result = etree.tostring(root, pretty_print=False)
        #xml_result = xml_result.replace('"','\\"')
        #-------------------------------------------- write xml to temp file
        file_to_save_with_path = '/tmp/'+self.name+str(date_of_synchronization)
        temp_file = open(file_to_save_with_path,'w')
        temp_file.write(xml_result)
        temp_file.close()
        string = '/usr/bin/putbigchaindb.py --xml="'+file_to_save_with_path+'"'
        os.system(string)