code: def _hash_and_save(self, node):
          
          validate_is_bin_node(node)
  
          node_hash = keccak(node)
          self.db[node_hash] = node
          return node_hash
docs: Saves a node into the database and returns its hash