def transfer(self, note_id, target, quantity, refer):
    logging.info('going to transfer {} to {}'.format(note_id, target))
    ver = super.ver
    super.ver += 1
    m = hashlib.sha256()
    m.update(bytes(note_id, 'utf-8'))
    m.update(bytes(ver, 'utf-8'))
    sha256_id = m.hexdigest()
    super.session.execute(self.newDraft, [sha256_id, note_id, target, ver, quantity, refer, 'transfer'])
def transfer(self, note_id, target, quantity, refer):
    logging.info('going to transfer {} to {}'.format(note_id, target))
    ver = super.ver
    super.ver += 1
    m = hashlib.sha256()
    m.update(bytes(note_id, 'utf-8'))
    m.update(bytes(ver, 'utf-8'))
    sha256_id = m.hexdigest()
    super.session.execute(self.newDraft, [sha256_id, note_id, target, ver, quantity, refer, 'transfer'])