California is unique in that its laws expressly establish that the employer owns trade secrets created by an employee. (Cal. Labor Code Sec. 2860). However, an employer in California would not own trade secrets created on an employee's own time without the use of employee materials. Although the law does not require a contract, it's a good idea to buttress your position in California by the use of a written agreement.