You should read this article: http://www.wikihow.com/Copyright-Software If you are a US citizen go to this site: http://www.copyright.gov/ After that ask a lawyer to draft a legal agreement for passing the ownership over to the buyer. If it is not worth the investment in a lawyer I suppose you should ask the other party what would be sufficient guaranty in his opinion.