I have a contract that I want to be legally binding in traditional courts. It assigns rights, and for this I need legalese in the comments to describe the process. What is the best way to make sure that these comments are verifiable?
Solutions that I think might work:
1) Upload the contract to Etherscan for verification. If Etherscan keeps track of the hash of the pasted contract, then great, we can verify.
2) Get a swarm hash of the text with comments, and then after deployment, update the contract with the swarm hash, and then link to it on swarm in the frontend.
Why would one want to put legalese in a smart contract?
While a smart contract guarantees across borders that the terms of the code are enforced, what it does not do is give users legal protection in their jurisdiction if the contract assigns rights. If you assign rights of a copyright to someone for example, there has to be a scope acceptable in law, not just code. Adding an explicit conveyance in text of what a specific function transfers to the user is important for them to have proof that they are legally protected.